Update auto-partitioning for RHEL7
In RHEL7, the preferred filesystem is now xfs and the efi partition type is unambiguously present.
This commit is contained in:
parent
742f8b611b
commit
e574664a50
@ -225,19 +225,26 @@ elif grep ext4 /proc/filesystems > /dev/null; then
|
||||
else
|
||||
FSTYPE=ext3
|
||||
fi
|
||||
BOOTFSTYPE=ext3
|
||||
EFIFSTYPE=vfat
|
||||
if uname -r|grep ^3.*el7 > /dev/null; then
|
||||
FSTYPE=xfs
|
||||
BOOTFSTYPE=xfs
|
||||
EFIFSTYPE=efi
|
||||
fi
|
||||
|
||||
if [ `uname -m` = "ppc64" ]; then
|
||||
echo 'part None --fstype "PPC PReP Boot" --ondisk '$instdisk' --size 8' >> /tmp/partitioning
|
||||
fi
|
||||
if [ -d /sys/firmware/efi ]; then
|
||||
echo 'bootloader --driveorder='$instdisk >> /tmp/partitioning
|
||||
echo 'part /boot/efi --size 50 --ondisk '$instdisk' --fstype vfat' >> /tmp/partitioning
|
||||
echo 'part /boot/efi --size 50 --ondisk '$instdisk' --fstype $EFIFSTYPE' >> /tmp/partitioning
|
||||
else
|
||||
echo 'bootloader' >> /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 /boot --size 256 --fstype ext3 --ondisk $instdisk" >> /tmp/partitioning
|
||||
echo "part /boot --size 256 --fstype $BOOTFSTYPE --ondisk $instdisk" >> /tmp/partitioning
|
||||
echo "part swap --recommended --ondisk $instdisk" >> /tmp/partitioning
|
||||
echo "part / --size 1 --grow --ondisk $instdisk --fstype $FSTYPE" >> /tmp/partitioning
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user