fix issue that when set [osimage=<osimagename>] 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
This commit is contained in:
daniceexi 2012-12-21 08:06:52 +00:00
parent 03b2373420
commit 38576c2815

View File

@ -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";