diff --git a/xCAT/postscripts/setbootfromdisk b/xCAT/postscripts/setbootfromdisk index 700178813..9d33dbd4a 100755 --- a/xCAT/postscripts/setbootfromdisk +++ b/xCAT/postscripts/setbootfromdisk @@ -20,7 +20,7 @@ if [[ $OS = "Linux" ]]; then BOOTENTRY=`cat /proc/mounts |grep /boot` if [[ -z $BOOTENTRY ]]; then - BOOTENTRY=`mount |grep " / "` + BOOTENTRY=`grep ^\/dev /proc/mounts |grep " / "` fi BOOTDEVICE=`echo $BOOTENTRY | awk '{print $1}'`