From 3d3f69cdbeaab7766d7b5df1be68eb8f44a48813 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 2 Jun 2014 13:48:49 -0400 Subject: [PATCH] Fix mistakes in the adjustment to rhel7 default FS cohice --- .../share/xcat/install/scripts/pre.rh.rhel7 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/xCAT-server/share/xcat/install/scripts/pre.rh.rhel7 b/xCAT-server/share/xcat/install/scripts/pre.rh.rhel7 index 6d94227d3..57023d6e9 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.rh.rhel7 +++ b/xCAT-server/share/xcat/install/scripts/pre.rh.rhel7 @@ -178,14 +178,6 @@ if [ -z "$instdisk" ]; then instdisk=$firstdisk fi fi -BOOTFSTYPE=ext3 -EFIFSTYPE=vfat - -if uname -r|grep ^3.*el7 > /dev/null; then - BOOTFSTYPE=xfs - FSTYPE=xfs - EFIFSTYPE=efi -fi modprobe ext4 >& /dev/null modprobe ext4dev >& /dev/null if grep ext4dev /proc/filesystems > /dev/null; then @@ -195,12 +187,20 @@ 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 + BOOTFSTYPE=xfs + FSTYPE=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 'part /boot/efi --size 50 --ondisk '$instdisk' --fstype efi' >> /tmp/partitioning + echo 'part /boot/efi --size 50 --ondisk '$instdisk' --fstype '$EFIFSTYPE >> /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...