-Make boot.cfg filenames relative in ESXi5 boot.cfg setup

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9394 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-04-25 17:53:31 +00:00
parent bcf59009b0
commit a8e0f45821

View File

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