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:
parent
2f72eaa2eb
commit
9d81c4e126
@ -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}'`
|
||||
|
Loading…
Reference in New Issue
Block a user