diff --git a/xCAT-server/share/xcat/netboot/fedora12/genimage b/xCAT-server/share/xcat/netboot/fedora12/genimage index 8e12be527..1026afaee 100755 --- a/xCAT-server/share/xcat/netboot/fedora12/genimage +++ b/xCAT-server/share/xcat/netboot/fedora12/genimage @@ -808,7 +808,7 @@ if [ "\$NFSROOT" = "1" ]; then # now that everything is mounted, lets do this # hmmm, apparently I'm checking this twice... so I'd better # be really sure the file is there. - while [ -z \$NEWROOT/etc/init.d/statelite ] + while [ ! -e \$NEWROOT/etc/init.d/statelite ] do echo "\$NEWROOT/etc/init.d/statelite does not exist in image!" shell diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index d99c788a8..dd5814c7e 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -836,7 +836,7 @@ if [ "\$NFSROOT" = "1" ]; then # now that everything is mounted, lets do this # hmmm, apparently I'm checking this twice... so I'd better # be really sure the file is there. - while [ -z \$NEWROOT/etc/init.d/statelite ] + while [ ! -e \$NEWROOT/etc/init.d/statelite ] do echo "\$NEWROOT/etc/init.d/statelite does not exist in image!" shell diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index e28173ebc..db9b78886 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -913,7 +913,7 @@ if [ "\$NFSROOT" = "1" ]; then # now that everything is mounted, lets do this # hmmm, apparently I'm checking this twice... so I'd better # be really sure the file is there. - while [ -z \$NEWROOT/etc/init.d/statelite ] + while [ ! -e \$NEWROOT/etc/init.d/statelite ] do echo "\$NEWROOT/etc/init.d/statelite does not exist in image!" shell