Sorry my bad ... on the system the = in the heretoo's are - , should have
proof read what I cut and paste!
probably should also cut it from the source and not the rendered view too so
the escapes are in too oh well .
oh and thanks Joseph for posting your example in the first place ;)
# get the number of hard disks and there names
set \$(list-harddrives)
let numd=\$#/2
drive1=\$1
drive2=\$3
# Default data and rootvg size
swapsize=8192
pv2size=1
pv1size=8196
if [ \$numd = 1]; then # only one disk
cat <<- EOpart > /tmp/part-include
part /boot --fstype ext3 --size=100 --ondisk=\$d1 --asprimary
part pv.100 --size \$pv1size --ondisk=\$d1 --asprimary
part pv.200 --size \$pv2size --grow --ondisk=\$d1 --asprimary
volgroup rootvg pv.100
volgroup datavg pv.200
logvol / --fstype ext3 --vgname=rootvg --size=8196
--name=rootvol
logvol /tmp --fstype ext3 --vgname=rootvg --size=548
--name=tmpvol
logvol swap --fstype swap --vgname=rootvg --size=\$swapsize
--name=swapvol
logvol /data --fstype ext3 --vgname datavg --size 1 --grow
--name=nobackup
EOpart
else
cat <<- EOpart > /tmp/part-include
part /boot --fstype ext3 --size=100 --ondisk=\$d1 --asprimary
part pv.100 --size \$pv1size --ondisk=\$d1 --asprimary
part pv.200 --size \$pv2size --grow --ondisk=\$d2 --asprimary
part pv.300 --size 1 --grow --ondisk\$d1 --asprimary
volgroup rootvg pv.100
volgroup datavg pv.200 pv.300
logvol / --fstype ext3 --vgname=rootvg --size=8196
--name=rootvol
logvol /tmp --fstype ext3 --vgname=rootvg --size=548
--name=tmpvol
logvol swap --fstype swap --vgname=rootvg --size=\$swapsize
--name=swapvol
logvol /data --fstype ext3 --vgname datavg --size 1 --grow
--name=nobackup
EOpart
fi
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler