From 9e8e8616d52f1839a0f84f82b53875f03df7b448 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 22 Sep 2011 21:06:32 +0000 Subject: [PATCH] Fix windows script for uefi detection git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10616 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/windows.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 6e78950dd..5520e6142 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -400,15 +400,15 @@ sub mkinstall } - if (-f "$::XCATROOT/share/xcat/netboot/efidetect.exe" and not -f "$installroot/utils/efidetect.exe") { + if (-f "$::XCATROOT/share/xcat/netboot/detectefi.exe" and not -f "$installroot/utils/detectefi.exe") { mkpath("$installroot/utils/"); - copy("$::XCATROOT/share/xcat/netboot/efidetect.exe","$installroot/utils/efidetect.exe"); + copy("$::XCATROOT/share/xcat/netboot/detectefi.exe","$installroot/utils/detectefi.exe"); } open($shandle,">","$installroot/autoinst/$node.cmd"); print $shandle "set UNATTEND=$node\r\n"; - if (-f "$installroot/utils/efidetect.exe") { - print $shandle "i:\\efidetect.exe\r\n"; - print $shandle "if %ERRORLEVEL% equ 0 set UNATTEND=$node.uefi\r\n"; + if (-f "$installroot/utils/detectefi.exe") { + print $shandle "i:\\utils\\detectefi.exe\r\n"; + print $shandle "if NOT ERRORLEVEL 1 set UNATTEND=$node.uefi\r\n"; } if ($sspeed) {