From bdfcdf364dc41b1c19076a5f674dff790a1ec57c Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 10 Feb 2012 02:23:11 +0000 Subject: [PATCH] Rework Windows PE startnet to give a debug cmd earlier and pause if cmd script is missing git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11530 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/windows/startnet.cmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/netboot/windows/startnet.cmd b/xCAT-server/share/xcat/netboot/windows/startnet.cmd index f2929f633..12846c01f 100644 --- a/xCAT-server/share/xcat/netboot/windows/startnet.cmd +++ b/xCAT-server/share/xcat/netboot/windows/startnet.cmd @@ -1,4 +1,5 @@ @echo off +start /min cmd echo Initializing, please wait. FOR /F "tokens=*" %%A IN ('wmic csproduct get uuid /Format:list ^| FIND "="') DO SET %%A set guid=%uuid:~6,2%%uuid:~4,2%%uuid:~2,2%%uuid:~0,2%-%uuid:~11,2%%uuid:~9,2%-%uuid:~16,2%%uuid:~14,2%%uuid:~18,18% @@ -9,7 +10,6 @@ echo "Dhcpv6DUID"=hex:00,04,%guid:~0,2%,%guid:~2,2%,%guid:~4,2%,%guid:~6,2%,%gui echo. >> duiduuid.reg regedit /s duiduuid.reg wpeinit -start /min cmd for /f %%A IN ('getnextserver.exe') DO SET XCATD=%%A echo Waiting for xCAT server %XCATD% to become reachable (check WinPE network drivers if this does not proceeed) :noping @@ -23,5 +23,7 @@ for /f "delims=: tokens=2" %%c in ('ipconfig ^|find "IPv4 Address. . ."') do set for /f %%c in ('echo %NODEIP%') do set NODEIP=%%c if exist i:\autoinst\%NODEIP%.cmd copy i:\autoinst\%NODEIP%.cmd x:\xcat\autoscript.cmd if exist i:\autoinst\%guid%.cmd copy i:\autoinst\%guid%.cmd x:\xcat\autoscript.cmd +if not exist x:\xcat\autoscript.cmd echo I could not find my autoinst file +if not exist x:\xcat\autoscript.cmd pause call x:\xcat\autoscript.cmd wpeutil reboot