From f9f5cce21a1be19bb4dad980156b1170ecd96b44 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 22 Sep 2011 18:02:54 +0000 Subject: [PATCH] Fix problem in previous checkin trying to write to a filehandle before actually opening it git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10605 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/windows.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index c30beb232..6e78950dd 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -404,13 +404,13 @@ sub mkinstall mkpath("$installroot/utils/"); copy("$::XCATROOT/share/xcat/netboot/efidetect.exe","$installroot/utils/efidetect.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"; } - open($shandle,">","$installroot/autoinst/$node.cmd"); if ($sspeed) { $sport++; print $shandle "i:\\$os\\$arch\\setup /unattend:i:\\autoinst\\%UNATTEND% /emsport:COM$sport /emsbaudrate:$sspeed /noreboot\r\n";