one bug in setbootfromdisk is fixed

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8139 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-11-12 09:09:11 +00:00
parent 2f72eaa2eb
commit 9d81c4e126

View File

@ -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}'`