Fix dodestiny script to correctly do runimage

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@596 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-02-27 16:34:37 +00:00
parent 1fff80a49f
commit 8ac1b9a3d8

View File

@ -112,14 +112,15 @@ while :; do
reboot -f #If script is here, kexec failed, reboot in case it wasn't a linux kernel and let the boot loader handle it instead
fi
if [ "$DEST" == "runimage" ]; then
mkdir /tmp/$TARG
cd /tmp/$TARG
mkdir /tmp/`basename $TARG`
cd /tmp/`basename $TARG`
wget $TARG
while ! nextdestiny ; do
echo "Retrying next destiny..."
done
tar zxvf $TARG
/tmp/$TARG/runme.sh
tar zxvf `basename $TARG`
cd /tmp/`basename $TARG`
./runme.sh
cd -
fi
usleep 5000000 # something may be transiently wrong, check back in 5 seconds