diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 5a0c682f7..e8664f6f7 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -3759,12 +3759,23 @@ sub copycd { open($bootcfg,"<","$installroot/$distname/$arch/boot.cfg"); my @bootcfg = <$bootcfg>; close($bootcfg); + foreach (@bootcfg) { #no point in optimizing trivial, infrequent code, readable this way + s!kernel=/!kernel=!; # remove leading / + s!modules=/!modules=!; #remove leading / + s!--- /!--- !g; #remove all the 'absolute' slashes + } + open($bootcfg,">","$installroot/$distname/$arch/boot.cfg.install"); + foreach (@bootcfg) { + print $bootcfg $_; + } + close($bootcfg); foreach (@bootcfg) { #no point in optimizing trivial, infrequent code, readable this way s/runweasel//; #don't run the installer in stateless mode s!--- /imgdb.tgz!!; #don't need the imgdb for stateless s!--- /imgpayld.tgz!!; #don't need the boot payload since we aren't installing s!--- /tools.t00!!; #tools could be useful, but for now skip the memory requirement s!--- /weaselin.i00!!; #and also don't need the weasel install images if... not installing + if (/^modules=/ and $_ !~ /xcatmod.tgz/) { chomp(); s! *\z! --- /xcatmod.tgz\n!;