diff --git a/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsc b/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsc index 24676e34c..648dd577c 100755 --- a/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsc +++ b/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsc @@ -53,10 +53,11 @@ case "$1" in for i in $( grep "\bgpfs\b" /etc/fstab | \ + grep -v noauto | \ awk '{print $2}' ) do - mount | grep "\b/gpfs1\b" >/dev/null 2>&1 + mount | grep "\b/$1\b" >/dev/null 2>&1 if [ "$?" != "0" ] then DOBLOCK=yes diff --git a/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsc.pl b/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsc.pl index 3827ec207..d98426425 100755 --- a/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsc.pl +++ b/xCAT-server/share/xcat/netboot/add-on/autogpfs/autogpfsc.pl @@ -28,7 +28,7 @@ while(<$sock>) { $line = $_; if($line =~ /^busy/) { - exit(2); + exit(3); } if($line =~ /^new started/) { next;