From e30fbd2b8031888bd53e3b3bfe203cd70e3824f5 Mon Sep 17 00:00:00 2001 From: sjing Date: Thu, 30 May 2013 06:06:27 +0000 Subject: [PATCH] use reboot in genesis instead of shutdown git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16469 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/imgcapture.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/imgcapture.pm b/xCAT-server/lib/xcat/plugins/imgcapture.pm index dfa556843..e1091434f 100644 --- a/xCAT-server/lib/xcat/plugins/imgcapture.pm +++ b/xCAT-server/lib/xcat/plugins/imgcapture.pm @@ -612,6 +612,10 @@ sub sysclone_getimg{ return 1; } + # use reboot in genesis + my $masterscript = $sysclone_home . "/scripts" . "/$osimage.master"; + my $rc = `sed -i "s/shutdown -r now/reboot -f/g" $masterscript`; + return 0; }