diff --git a/xCAT-nbroot/overlay/bin/dodestiny b/xCAT-nbroot/overlay/bin/dodestiny index 0491b31c4..8b55887b0 100755 --- a/xCAT-nbroot/overlay/bin/dodestiny +++ b/xCAT-nbroot/overlay/bin/dodestiny @@ -137,7 +137,7 @@ while :; do while ! nextdestiny ; do echo "Retrying next destiny..." done - reboot -f + /bin/rebootnode fi if [ "$DEST" == "runcmd" ]; then while ! nextdestiny ; do @@ -146,7 +146,7 @@ while :; do $TARG fi if [ "$DESTINY" == "install" -o "$DESTINY" == "netboot" ]; then - 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 + /bin/rebootnode #If script is here, kexec failed, reboot in case it wasn't a linux kernel and let the boot loader handle it instead IMGSERVER=`grep imgserver /tmp/destiny | awk -F'>' '{print $2}'|awk -F'<' '{print $1}'` INITRD=`grep initrd /tmp/destiny | awk -F'>' '{print $2}'|awk -F'<' '{print $1}'` KERNEL=`grep kernel /tmp/destiny | awk -F'>' '{print $2}'|awk -F'<' '{print $1}'` @@ -166,7 +166,7 @@ while :; do rmmod $mod done #kexec -f --append="$KCMD" --initrd=/tmp/initrd /tmp/kernel - 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 + /bin/rebootnode #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/`basename $TARG` diff --git a/xCAT-nbroot/overlay/bin/rebootnode b/xCAT-nbroot/overlay/bin/rebootnode new file mode 100755 index 000000000..327f4d050 --- /dev/null +++ b/xCAT-nbroot/overlay/bin/rebootnode @@ -0,0 +1,5 @@ +for udhcpc in `ps axf|grep -i udhcpc|grep -v grep|awk '{print $1}'`; do + kill -USR2 $udhcpc +done +reboot -f +