Skip to content

Commit

Permalink
fix issue that can't boot in UEFI
Browse files Browse the repository at this point in the history
  • Loading branch information
slore committed Aug 20, 2019
1 parent d3b88fa commit 6e5dbf8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/_MakeBootISO.bat
Expand Up @@ -35,7 +35,11 @@ if not exist "%ISO_DIR%\boot\etfsboot.com" (
)

copy /y "%Factory%\target\%WB_PROJECT%\build\boot.wim" "%ISO_DIR%\sources\boot.wim"
oscdimg.exe -b"%ISO_DIR%\boot\etfsboot.com" -h -l"%WB_ISO_LABEL%" -m -u2 "%ISO_DIR%" "%Factory%\%WB_ISO_NAME%.iso"
if exist "%ISO_DIR%\efi\Microsoft\boot\efisys.bin" (
oscdimg.exe -bootdata:2#p0,e,b"%ISO_DIR%\boot\etfsboot.com"#pEF,e,b"%ISO_DIR%\efi\Microsoft\boot\efisys.bin" -h -l"%WB_ISO_LABEL%" -m -u2 -udfver102 "%ISO_DIR%" "%Factory%\%WB_ISO_NAME%.iso"
) else (
oscdimg.exe -b"%ISO_DIR%\boot\etfsboot.com" -h -l"%WB_ISO_LABEL%" -m -u2 -udfver102 "%ISO_DIR%" "%Factory%\%WB_ISO_NAME%.iso"
)
echo \033[96mISO Created -* %Factory%\%WB_ISO_NAME%.iso | cmdcolor.exe
if ERRORLEVEL 1 (
echo make boot iso failed.
Expand Down

0 comments on commit 6e5dbf8

Please sign in to comment.