-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Hiren's BootCD PE x64 efi #18
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[LaunchApps] | ||
mountiso.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Hiren's BootCD PE | ||
# https://www.hirensbootcd.org | ||
|
||
iso_pattern="HBCD_PE_x64*.iso" | ||
|
||
for isofile in $iso_dir/$iso_pattern; do | ||
if [ -e "$isofile" ]; then | ||
regexp --set=isoname "$iso_dir/(.*)" "$isofile" | ||
|
||
if [ "${grub_platform}" == "efi" ]; then | ||
menuentry "$isoname" "$isofile" --class=windows { | ||
terminal_output console | ||
echo Loading boot.wim... This may take some time | ||
iso_path="$2" | ||
save_env iso_path | ||
LOOPBACK "$iso_path" | ||
linux /MultiOS-USB/tools/wimboot-*/wimboot.x86_64 quiet | ||
initrd newc:boot.wim:(loop)/sources/boot.wim \ | ||
newc:mountIso.exe:/MultiOS-USB/tools/mountiso/mountiso64.exe \ | ||
newc:grubenv:($dev,1)/grub/grubenv \ | ||
newc:Winpeshl.ini:/MultiOS-USB/config/hbcd/Winpeshl.ini | ||
echo Loading boot.wim complete, booting... | ||
} | ||
fi | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters