From 6bde1ca343d597900ebbfaac77184253328744b6 Mon Sep 17 00:00:00 2001 From: leiaibj Date: Mon, 3 Dec 2012 06:34:11 +0000 Subject: [PATCH] Set proper chaintable, should use runcmd=osimage instead of set osimage directly git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14518 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index 2c70c8fb5..1068f5f5b 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -1232,7 +1232,7 @@ sub gen_new_hostinfo_string{ # Update BMC records. if (exists $netprofileattr{"bmc"}){ $hostinfo_dict{$item}{"mgt"} = "ipmi"; - $hostinfo_dict{$item}{"chain"} = 'runcmd=bmcsetup,'.$provmethod; + $hostinfo_dict{$item}{"chain"} = 'runcmd=bmcsetup,osimage='.$provmethod; if (exists $ipshash{"bmc"}){ $hostinfo_dict{$item}{"bmc"} = $ipshash{"bmc"}; @@ -1240,7 +1240,7 @@ sub gen_new_hostinfo_string{ return 0, "There are no more IP addresses available in the static network range for the BMC network."; } } else{ - $hostinfo_dict{$item}{"chain"} = $provmethod; + $hostinfo_dict{$item}{"chain"} = 'osimage='.$provmethod; } # Generate the hostinfo string.