For me it's easier to use:
set $(list-harddrives)
let numd=$#/2 # Number of disks
d1=$1 # device for 1st disk
S1=$2 # size for first disk (and so on)
DISK=$d1
echo "clearpart --drives=$DISK --all --initlabel" >> /tmp/part-include
echo "part /boot --fstype ext3 --size=100 --_ondisk_=$DISK" >> /tmp/part-include
echo "part pv.100000 --size=1 --grow --_ondisk_=$DISK" >> /tmp/part-include
echo "volgroup vgname --pesize=32768 pv.100000" >> /tmp/part-include
echo "logvol swap --fstype swap --name=Swap --vgname=vgname --size=2047" >> /tmp/part-include
echo "logvol / --fstype ext3 --name=root --vgname=vgname --size=2048" >> /tmp/part-include
echo "logvol /home --fstype ext3 --size=1500 --name=home --vgname=vgname" >> /tmp/part-include
echo "logvol /tmp --fstype ext3 --size=2048 --name=tmp --vgname=vgname" >> /tmp/part-include
--
Pablo Iranzo Gómez (Pablo.Iranzo@xxxxxxxxxx)
Senior Global Profesional Services Consultant (RHCA, RHCSS, RHCDS, RHCVA, RHCE, RHCSA, RHCSP) #110-215-852
Phone: +34 645 01 01 49 (CET/CEST)
GnuPG KeyID: 0x5BD8E1E4
set $(list-harddrives)
let numd=$#/2 # Number of disks
d1=$1 # device for 1st disk
S1=$2 # size for first disk (and so on)
DISK=$d1
echo "clearpart --drives=$DISK --all --initlabel" >> /tmp/part-include
echo "part /boot --fstype ext3 --size=100 --_ondisk_=$DISK" >> /tmp/part-include
echo "part pv.100000 --size=1 --grow --_ondisk_=$DISK" >> /tmp/part-include
echo "volgroup vgname --pesize=32768 pv.100000" >> /tmp/part-include
echo "logvol swap --fstype swap --name=Swap --vgname=vgname --size=2047" >> /tmp/part-include
echo "logvol / --fstype ext3 --name=root --vgname=vgname --size=2048" >> /tmp/part-include
echo "logvol /home --fstype ext3 --size=1500 --name=home --vgname=vgname" >> /tmp/part-include
echo "logvol /tmp --fstype ext3 --size=2048 --name=tmp --vgname=vgname" >> /tmp/part-include
De: "Adrian Cruceru" <crucerua@xxxxxxxxx>
Para: kickstart-list@xxxxxxxxxx
Enviados: Lunes, 22 de Octubre 2012 9:45:17
Asunto: Re: Disk detection with kickstart
Hi,
You can process /proc/partitions within %pre. Just make sure to avoid block devices.
You can easily process this and generate a separate file for partitioning (and have a %include for that)
Hope this helps,
Regards,
Adrian
On 10/22/2012 10:11 AM, Markus Eyrich wrote:Did you get any help on this topic ? I would also be interested in that.
MarkusKind regards,
Am 21.10.2012 23:51, schrieb kk s:
Hi,
I have to provision the servers and all the servers are different disk types like hda, sda, xvda. So I have issue to detect the disk type itself with kickstart and make partitions. Does anyone have pre installation script that will do this job?
_______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-listDiese E-Mail wurde von bytstor archiviert. Zum Ändern des Status: http://bytstormail.byteaction.de/bytstor/app/action/SearchStoredMailAction/template/storedMail%2CSearchStoredMail.vm?redirect_template=storedMail%2CSearchStoredMail.vm&usermailid=10337005
_______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list
--
Pablo Iranzo Gómez (Pablo.Iranzo@xxxxxxxxxx)
Senior Global Profesional Services Consultant (RHCA, RHCSS, RHCDS, RHCVA, RHCE, RHCSA, RHCSP) #110-215-852
Phone: +34 645 01 01 49 (CET/CEST)
GnuPG KeyID: 0x5BD8E1E4
_______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list