From aaa9ddd5533826da4cb6df1276e47a9a40e6a884 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 18 Jan 2019 13:28:29 -0500 Subject: [PATCH] Do not proceed past boot into standby Some installers advance the destiny multiple times. Avoid going off the edge into 'standby' in such scenarios. --- xCAT-server/lib/xcat/plugins/destiny.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm b/xCAT-server/lib/xcat/plugins/destiny.pm index b82cac056..5abcbf0b8 100755 --- a/xCAT-server/lib/xcat/plugins/destiny.pm +++ b/xCAT-server/lib/xcat/plugins/destiny.pm @@ -866,7 +866,12 @@ sub nextdestiny { $ref->{currchain} = $ref->{chain}; } elsif ($ref->{currchain} !~ /[,;]/){ if ($ref->{currstate} and ($ref->{currchain} =~ /$ref->{currstate}/)) { - $ref->{currchain} = 'standby'; + if ($ref->{currstate} eq 'boot') { + $ref->{currchain} = 'boot'; + } + if ($ref->{currchain} ne 'boot') { + $ref->{currchain} = 'standby'; + } $callnodeset = 0; } }