Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
iso/winpe: allow users to run custom batch file
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Jun 14, 2020
1 parent 5b57fda commit 0aa9b5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions boot/grubfm/rules/iso/loop_detect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ function iso_detect {
export src=win;
return;
fi;
if [ -z "${grubfm_startpebat}" -o ! -f "${grubfm_startpebat}" ];
then
set grubfm_startpebat="(install)/silent.bat";
fi;
lua ${prefix}/rules/iso/winpe.lua;
if [ ${wim_count} -ge 1 ];
then
Expand Down
4 changes: 2 additions & 2 deletions boot/grubfm/rules/iso/winpe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ local function gen_wimboot (wim)
" @:null.cfg:(envblk)/null.cfg" ..
" @:mount_x64.exe:(install)/mount_x64.exe" ..
" @:mount_x86.exe:(install)/mount_x64.exe" ..
" @:start.bat:(install)/silent.bat" ..
" @:start.bat:${grubfm_startpebat}" ..
" @:winpeshl.ini:(install)/winpeshl.ini" ..
" @:boot.wim:\"" .. wim .. "\"\n"
else
Expand All @@ -97,7 +97,7 @@ local function gen_wimboot (wim)
" newc:null.cfg:(envblk)/null.cfg" ..
" newc:mount_x64.exe:(install)/mount_x64.exe" ..
" newc:mount_x86.exe:(install)/mount_x64.exe" ..
" newc:start.bat:(install)/silent.bat" ..
" newc:start.bat:${grubfm_startpebat}" ..
" newc:winpeshl.ini:(install)/winpeshl.ini" ..
" newc:boot.wim:\"" .. wim .. "\"\n" ..
"set gfxmode=1920x1080,1366x768,1024x768,800x600,auto\n" ..
Expand Down

0 comments on commit 0aa9b5e

Please sign in to comment.