My Cobbler installation generated a kickstart file with this in the %pre section which seems to work:
set $(list-harddrives) d1=$1 d2=$3 cat << EOF > /tmp/partinfo part /boot --size=100 --ondisk=$d1 --asprimary --fstype=ext3 part pv.01 --size=230110 --ondisk=$d1 --asprimary etc etc EOF It then %includes /tmp/partinfo in the main section. Jan-Frode Myklebust wrote: > We have this small snippet in our kickstart files: > > clearpart --all --initlabel > part /boot --fstype ext3 --size=128 > part pv.0 --size=0 --grow > volgroup rootvg pv.0 > logvol / --fstype ext3 --name=rootlv --vgname=rootvg --size=5120 > logvol swap --fstype swap --name=swaplv --vgname=rootvg --size=2048 > logvol /var --fstype ext3 --name=varlv --vgname=rootvg --size=3072 > logvol /local --fstype ext3 --name=locallv --vgname=rootvg --size=1024 > > which works fine, except when there's more than one > disk in the system. Then it picks the first disk (sda or hda) > to hold the /boot fs, and the second disk (sdb or hdb) to hold > the root volume group. > > Does anybody know how fix this so that both are placed on the same > disk during kickstart ? > > > -jf > > _______________________________________________ > rhelv5-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/rhelv5-list > -- Trevor Hemsley Infrastructure Engineer ................................................. * C A L Y P S O * Brighton, UK OFFICE +44 (0) 1273 666 350 FAX +44 (0) 1273 666 351 ................................................. www.calypso.com This electronic-mail might contain confidential information intended only for the use by the entity named. If the reader of this message is not the intended recipient, the reader is hereby notified that any dissemination, distribution or copying is strictly prohibited. * P * /*/ Please consider the environment before printing this e-mail /*/ _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
