From f8fab797820a579e757793facf3e4b48e0cf4300 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Fri, 18 Jun 2010 02:59:31 +0000 Subject: [PATCH] for defect 3017573, change "-z" to "! -e". git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6524 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/fedora12/genimage | 2 +- xCAT-server/share/xcat/netboot/rh/genimage | 2 +- xCAT-server/share/xcat/netboot/sles/genimage | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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