From b2a04a221b3d58fe119d7cd21c7efecb5090935c Mon Sep 17 00:00:00 2001 From: ertaozh Date: Mon, 30 Mar 2015 04:56:42 -0400 Subject: [PATCH] fix bug 4611: PowerNV stateful CN provision will hang at reboot stage --- xCAT-server/lib/xcat/plugins/petitboot.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/petitboot.pm b/xCAT-server/lib/xcat/plugins/petitboot.pm index 2dbfcb380..21ab4c9ce 100644 --- a/xCAT-server/lib/xcat/plugins/petitboot.pm +++ b/xCAT-server/lib/xcat/plugins/petitboot.pm @@ -402,6 +402,13 @@ sub process_request { } if ($errored) { return; } + # Fix the bug 4611: PowerNV stateful CN provision will hang at reboot stage# + if ($args[0] eq 'next') { + $sub_req->({command=>['rsetboot'], + node=>\@nodes, + arg=>['default']}); + xCAT::MsgUtils->message("S", "xCAT: petitboot netboot: clear node(s): @nodes boot device setting."); + } my $bptab=xCAT::Table->new('bootparams',-create=>1); my $bphash = $bptab->getNodesAttribs(\@nodes,['kernel','initrd','kcmdline','addkcmdline']); my $chaintab=xCAT::Table->new('chain',-create=>1);