From b042a85a69618c5a816906f70ef6f3a389d88135 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 23 Jan 2013 14:58:30 +0000 Subject: [PATCH] Hooks for startnet.cmd to recognize and accept optical drive provided script update as appropriate git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/windows/startnet.cmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/windows/startnet.cmd b/xCAT-server/share/xcat/netboot/windows/startnet.cmd index b937350ad..9073efb5c 100644 --- a/xCAT-server/share/xcat/netboot/windows/startnet.cmd +++ b/xCAT-server/share/xcat/netboot/windows/startnet.cmd @@ -8,6 +8,12 @@ echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters] >> echo "Dhcpv6DUID"=hex:00,04,%uuid:~0,2%,%uuid:~2,2%,%uuid:~4,2%,%uuid:~6,2%,%uuid:~9,2%,%uuid:~11,2%,%uuid:~14,2%,%uuid:~16,2%,%uuid:~19,2%,%uuid:~21,2%,%uuid:~24,2%,%uuid:~26,2%,%uuid:~28,2%,%uuid:~30,2%,%uuid:~32,2%,%uuid:~34,2% >> duiduuid.reg echo. >> duiduuid.reg regedit /s duiduuid.reg +for /f "delims=" %a in ('wmic cdrom get drive ^| find ":") do @set optdrive=%a +if [%optdrive%] == [] GOTO :netboot +if not exist %optdrive%:\dvdboot.cmd GOTO :netboot +%optdrive%:\dvdboot.cmd +goto :end +:netboot wpeinit 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) @@ -26,3 +32,4 @@ 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 +:end