From d22f5139d2c8c32ee05576b244839fc5fae671f1 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 5 Jan 2012 21:52:24 +0000 Subject: [PATCH] Correctly follow chain to netboot and install events in genesis git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11357 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot2/doxcat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-nbroot2/doxcat b/xCAT-nbroot2/doxcat index 23665ca05..3b32acfe5 100755 --- a/xCAT-nbroot2/doxcat +++ b/xCAT-nbroot2/doxcat @@ -105,6 +105,7 @@ while :; do fi destparameter=`echo $destiny|awk -F= '{print $2}'` destiny=`echo $destiny|awk -F= '{print $1}'` + dest=`echo $destiny|awk '{print $1}'` #could probably use bash but oh well if [ "$destiny" = "discover" ]; then #skip a query to xCAT when /proc/cmdline will do /bin/dodiscovery /bin/getcert $XCATMASTER:$XCATPORT @@ -131,6 +132,8 @@ while :; do elif [ "$destiny" = "reboot" -o "$destiny" = "boot" ]; then /bin/nextdestiny $XCATMASTER:$XCATPORT reboot -f + elif [ "$dest" = "install" -o "$dest" = "netboot" ]; then + reboot -f elif [ "$destiny" = standby ]; then destiny='' delay=$((30+$RANDOM%270))