From 6ce24eef0347b1678e66388db70003861949ebfd Mon Sep 17 00:00:00 2001 From: Mexit <25229673+Mexit@users.noreply.github.com> Date: Sat, 7 Sep 2024 11:43:08 +0200 Subject: [PATCH] Added support for Hiren's BootCD PE x64 efi #18 --- config/hbcd/Winpeshl.ini | 2 ++ config/hbcd/hbcd_wimboot.cfg | 26 ++++++++++++++++++++++++++ docs/Supported_OS.md | 1 + 3 files changed, 29 insertions(+) create mode 100755 config/hbcd/Winpeshl.ini create mode 100755 config/hbcd/hbcd_wimboot.cfg diff --git a/config/hbcd/Winpeshl.ini b/config/hbcd/Winpeshl.ini new file mode 100755 index 0000000..87b5f40 --- /dev/null +++ b/config/hbcd/Winpeshl.ini @@ -0,0 +1,2 @@ +[LaunchApps] +mountiso.exe diff --git a/config/hbcd/hbcd_wimboot.cfg b/config/hbcd/hbcd_wimboot.cfg new file mode 100755 index 0000000..7b66749 --- /dev/null +++ b/config/hbcd/hbcd_wimboot.cfg @@ -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 diff --git a/docs/Supported_OS.md b/docs/Supported_OS.md index c99c5ac..cab69be 100644 --- a/docs/Supported_OS.md +++ b/docs/Supported_OS.md @@ -39,6 +39,7 @@ Below is just a list of tested and working systems. The actual number of support | [GParted Live](https://gparted.org/livecd.php) | [gparted-live-1.6.0-1-amd64.iso](https://downloads.sourceforge.net/gparted/gparted-live-1.6.0-1-amd64.iso) | no | [no](../config/gparted) | yes | Debian | | [Grml](https://www.grml.org) | [grml64-full_2024.02.iso](https://download.grml.org/grml64-full_2024.02.iso) | no | yes | yes | Debian | | | [grml64-small_2024.02.iso](https://download.grml.org/grml64-small_2024.02.iso) | no | yes | yes | Debian | +| [Hiren's BootCD PE](https://www.hirensbootcd.org/) | [HBCD_PE_x64.iso](https://www.hirensbootcd.org/files/HBCD_PE_x64.iso) | yes | [no](../config/hbcd) | no | Microsoft | | [Kaspersky Rescue Disk](https://support.kaspersky.com/krd18) | [krd.iso](https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso) | no | [no](../config/kaspersky) | no | - | | [KDE neon](https://neon.kde.org) | [neon-user-20240229-0716.iso](https://files.kde.org/neon/images/user/20240229-0716/neon-user-20240229-0716.iso) | no | [no](../config/KDE_neon) | yes | Canonical | | [Kubuntu](https://kubuntu.org) | [kubuntu-24.04-desktop-amd64.iso](https://cdimage.ubuntu.com/kubuntu/releases/24.04/release/kubuntu-24.04-desktop-amd64.iso) | no | yes | yes | Canonical |