Put in capability to auto-create partition plans

Change partition plans for autodetect of PReP and UEFI style booting


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10574 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-09-20 15:51:01 +00:00
parent 909f4a55a5
commit f0c2764eb3
5 changed files with 30 additions and 8 deletions

View File

@ -33,8 +33,9 @@ key --skip
#No RAID
#/boot really significant for this sort of setup nowadays?
#part /boot --size 50 --fstype ext3
part swap --size 1024
part / --size 1 --grow --fstype ext4
%include /tmp/partitioning
#part swap --size 1024
#part / --size 1 --grow --fstype ext4
#RAID 0 /scr for performance
#part / --size 1024 --ondisk sda

View File

@ -33,8 +33,9 @@ key --skip
#No RAID
#/boot really significant for this sort of setup nowadays?
#part /boot --size 50 --fstype ext3
part swap --size 1024
part / --size 1 --grow --fstype ext4
%include /tmp/partitioning
#part swap --size 1024
#part / --size 1 --grow --fstype ext4
#RAID 0 /scr for performance
#part / --size 1024 --ondisk sda

View File

@ -33,8 +33,9 @@ key --skip
#No RAID
#/boot really significant for this sort of setup nowadays?
#part /boot --size 50 --fstype ext3
part swap --size 1024
part / --size 1 --grow --fstype ext4
%include /tmp/partitioning
#part swap --size 1024
#part / --size 1 --grow --fstype ext4
#RAID 0 /scr for performance
#part / --size 1024 --ondisk sda

View File

@ -33,8 +33,9 @@ key --skip
#No RAID
#/boot really significant for this sort of setup nowadays?
#part /boot --size 50 --fstype ext3
part swap --size 1024
part / --size 1 --grow --fstype ext4
%include /tmp/partitioning
#part swap --size 1024
#part / --size 1 --grow --fstype ext4
#RAID 0 /scr for performance
#part / --size 1024 --ondisk sda

View File

@ -121,3 +121,21 @@ EOF
chmod 755 /tmp/foo.py
/tmp/foo.py >/foo.log 2>&1 &
#time to ascertain fstype and PReP/UEFI/legacy
if grep ext4dev /proc/filesystems > /dev/null; then
FSTYPE=ext3
elif grep ext4 /proc/filesystems > /dev/null; then
FSTYPE=ext4
else
FSTYPE=ext3
fi
if [ `uname -m` = "ppc64" ]; then
echo 'part None --fstype "PPC PReP Boot" --size 8' >> /tmp/partitioning
fi
if [ -d /sys/firmware/efi ]; then
echo 'part /boot/efi --size 50 --fstype vfat' >> /tmp/partitioning
fi
#TODO: ondisk detection, /dev/disk/by-id/edd-int13_dev80 for legacy maybe, and no idea about efi. at least maybe blacklist SAN if mptsas/mpt2sas/megaraid_sas seen...
echo "part swap --size 1024" >> /tmp/partitioning
echo "part / --size 1 --grow --fstype $FSTYPE" >> /tmp/partitioning