From 38576c2815d7d5daea9b607621cb505f3259b9a8 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 21 Dec 2012 08:06:52 +0000 Subject: [PATCH] fix issue that when set [osimage=] in chain.chain to deploy os during genesis running, the provmethod was set to install/netboot instead of the osimage name git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14696 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/destiny.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm b/xCAT-server/lib/xcat/plugins/destiny.pm index b32dc06f8..d1a66c5d6 100644 --- a/xCAT-server/lib/xcat/plugins/destiny.pm +++ b/xCAT-server/lib/xcat/plugins/destiny.pm @@ -107,7 +107,8 @@ sub setdestiny { $state = $stents{$_}->[0]->{currstate}; $state =~ s/ .*//; #get the osimagename if nodetype.provmethod has osimage specified - if (($sninit ==1) && (($state eq 'install') || ($state eq 'netboot') || ($state eq 'statelite'))) { + #use it for both sninit and genesis operating + if (($state eq 'install') || ($state eq 'netboot') || ($state eq 'statelite')) { my $osimage=$ntents{$_}->[0]->{provmethod}; if (($osimage) && ($osimage ne 'install') && ($osimage ne 'netboot') && ($osimage ne 'statelite')) { $state="osimage=$osimage";