From f090ea93c7ac0b4bf78969ad26ede6a0b58b3d1a Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 4 May 2012 20:31:36 +0000 Subject: [PATCH] Have esx.pm put the kernel command line argument on 'b.b00' in tmpl case. It's still not the recommended approarch git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12531 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 6250262a9..3e78a7c9b 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -4314,9 +4314,8 @@ sub merge_esxi5_append { open($out,">",$outfile); my $line; while ($line = <$in>) { - if ($line =~ /kernelopt=/) { - chomp($line); - $line .= $append."\n"; + if ($line =~ /modules=b.b00/) { + $line =~ s/modules=b.b00/modules=b.b00 $append/; } print $out $line; }