2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-05-12 09:24:19 +00:00

fix for bug 4591: print a more reasonable message when no disk found on the node

This commit is contained in:
ligc
2015-04-15 02:05:47 -04:00
parent cd6c70e22e
commit bbcfef36e2
2 changed files with 12 additions and 0 deletions
@@ -218,6 +218,12 @@ if [ -z "$instdisk" ]; then
instdisk=$firstdisk
fi
fi
# Could not determine the install disk for whatever reason,
# try the default /dev/sda
if [ -z "$instdisk" ]; then
instdisk="/dev/sda"
fi
modprobe ext4 >& /dev/null
@@ -182,6 +182,12 @@ if [ -z "$instdisk" ]; then
instdisk=$firstdisk
fi
fi
# Could not determine the install disk for whatever reason,
# try the default /dev/sda
if [ -z "$instdisk" ]; then
instdisk="/dev/sda"
fi
modprobe ext4 >& /dev/null
modprobe ext4dev >& /dev/null
if grep ext4dev /proc/filesystems > /dev/null; then