From ad1794a25c2090766524e350fe1bd565d93b8a2f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 22 Apr 2011 19:11:23 +0000 Subject: [PATCH] fix append variable usage for esxi5 deployment git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9390 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 09e3b5f3a..8e4fe4d6a 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -3968,6 +3968,7 @@ sub mknetboot { my $tp = "xcat/netboot/$osver/$arch/$shortprofname"; my $kernel; my $kcmdline; + my $append; if ($osver =~ /esxi4/) { my $bail=0; foreach (@reqmods) { @@ -3983,7 +3984,7 @@ sub mknetboot { $kernel = "$tp/mboot.c32"; my $prepend = "$tp/vmkboot.gz"; delete $mods{"vmkboot.gz"}; - my $append = " --- $tp/vmk.gz"; + $append = " --- $tp/vmk.gz"; delete $mods{"vmk.gz"}; $append .= " --- $tp/sys.vgz"; delete $mods{"sys.vgz"}; @@ -4010,7 +4011,7 @@ sub mknetboot { } elsif ($osver =~ /esxi5/) { #do a more straightforward thing.. $kernel = "$tp/mboot.c32"; - $kcmdline = "-c $tp/boot.cfg.stateless"; + $append = "-c $tp/boot.cfg.stateless"; } $output_handler->({node=>[{name=>[$node],'_addkcmdlinehandled'=>[1]}]});