I'm using rhel5.6 anaconda, and attempting to align some systems with SSD disks 
with parted, prior to kickstarting them.  My kickstart contains the following:

%include /tmp/pre_install_parted

%pre
# use fdisk -l to determine if the block device is /dev/sda or /dev/hda etc...
echo "parted -s $(fdisk -l | awk '/Disk/ {print $2}'|cut -d: -f1) -- mklabel 
msdos mkpart primary 2048s 514047s mkpart primary 514048s -10M set 1 boot on" > 
/tmp/pre_install_parted

The above is nice because whether I'm kickstarting on /dev/hda, /dev/sda, etc, 
parted finds the block device and partitions the drive starting at the 2048 
sector.

Now I'd like to somehow pass the block device info from %pre to the 
partitioning portion of kickstart:

part /boot --onpart=$(the output of the above fdisk command)1
part pv.0 --onpart=$(the output of the above fdisk command)2

Is it possible to do this?  Can I somehow read the contents of a file I create 
in %pre and use it as the argument to --onpart=?

Thank you.

Mark

Confidentiality Notice.
This message may contain information that is confidential or otherwise 
protected from disclosure. If you are not the intended recipient, you are 
hereby notified that any use, disclosure, dissemination, distribution,  or 
copying  of this message, or any attachments, is strictly prohibited.  If you 
have received this message in error, please advise the sender by reply e-mail, 
and delete the message and any attachments.  Thank you.


_______________________________________________
Kickstart-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/kickstart-list

Reply via email to