From 7806922c3ed3a3d8fdde1bb97b9abe1afa93d04b Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 17 May 2012 17:19:37 +0000 Subject: [PATCH] Copy in mboot.c32 from custom path if applicable git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12770 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index ad7d195c2..61d1f4a19 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -4500,9 +4500,11 @@ sub mkcommonboot { } if ($osver =~ /esxi4/ and -r "$::XCATROOT/share/xcat/netboot/syslinux/mboot.c32") { #prefer xCAT patched mboot.c32 with BOOTIF for mboot copy("$::XCATROOT/share/xcat/netboot/syslinux/mboot.c32", $dest); - } else { + } elsif (-r "$custprofpath/mboot.c32") { + copy("$custprofpath/mboot.c32", $dest); + } elsif (-r "$srcdir/mboot.c32") { copy("$srcdir/mboot.c32", $dest); - } + } if (-f "$srcdir/efiboot.img") { copy("$srcdir/efiboot.img",$dest); print("$srcdir/efi");