From 8ac1b9a3d8b2978e8fe40ce42bf6c7585692fe4c Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 27 Feb 2008 16:34:37 +0000 Subject: [PATCH] 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 --- xCAT-nbroot/overlay/bin/dodestiny | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xCAT-nbroot/overlay/bin/dodestiny b/xCAT-nbroot/overlay/bin/dodestiny index 15d698ad1..0362bbc39 100755 --- a/xCAT-nbroot/overlay/bin/dodestiny +++ b/xCAT-nbroot/overlay/bin/dodestiny @@ -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