-Prefer BOOTIF capabale mboot.c32 when available

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6131 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-05-15 01:24:56 +00:00
parent e5eab882d0
commit cb1501c3c1

View File

@ -2372,7 +2372,11 @@ sub mknetboot {
push @reqmods,"mod.tgz";
$mods{"mod.tgz"}=1;
}
copy("$srcdir/mboot.c32", $dest);
if (-r $::XCATROOT/share/xcat/netboot/syslinux/mboot.c32) { #prefer xCAT patched mboot.c32 with BOOTIF for mboot
copy("$::XCATROOT/share/xcat/netboot/syslinux/", $dest);
} else {
copy("$srcdir/mboot.c32", $dest);
}
$donetftp{$osver,$arch,$profile} = 1;
}
my $tp = "xcat/netboot/$osver/$arch/$shortprofname";