diff --git a/xCAT-server/share/xcat/netboot/rh/dracut_033/xcat-prepivot.sh b/xCAT-server/share/xcat/netboot/rh/dracut_033/xcat-prepivot.sh index 56401e96d..6df3011e6 100755 --- a/xCAT-server/share/xcat/netboot/rh/dracut_033/xcat-prepivot.sh +++ b/xCAT-server/share/xcat/netboot/rh/dracut_033/xcat-prepivot.sh @@ -66,7 +66,7 @@ if [ ! -z $SNAPSHOTSERVER ]; then /bin/sh exit fi - RS= $(( $RANDOM % 20 )) + RS=$(( $RANDOM % 20 )) echo "Trying again in $RS seconds..." sleep $RS done @@ -83,7 +83,7 @@ if [ ! -z $SNAPSHOTSERVER ]; then /bin/sh exit fi - RS= $(( $RANDOM % 20 )) + RS=$(( $RANDOM % 20 )) echo "Trying again in $RS seconds..." sleep $RS done @@ -98,7 +98,7 @@ if [ ! -z $SNAPSHOTSERVER ]; then /bin/sh exit fi - RS= $(( $RANDOM % 20 )) + RS=$(( $RANDOM % 20 )) echo "Trying again in $RS seconds..." sleep $RS done diff --git a/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot b/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot index c4d6c17dd..94e1f026e 100755 --- a/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot +++ b/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot @@ -212,7 +212,7 @@ elif [ -r /rootimg-statelite.gz ]; then /bin/sh exit fi - RS= $(( $RANDOM % 20 )) + RS=$(( $RANDOM % 20 )) echo "Trying again in $RS seconds..." sleep $RS done @@ -227,7 +227,7 @@ elif [ -r /rootimg-statelite.gz ]; then /bin/sh exit fi - RS= $(( $RANDOM % 20 )) + RS=$(( $RANDOM % 20 )) echo "Trying again in $RS seconds..." sleep $RS done