From 8cd1b02b9d3d7f0b6e2a2f01588514524f6402c0 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 8 Dec 2022 23:28:57 +0300 Subject: [PATCH] Make sure to extract Win 7 bootloader from regular and multi-volume WIM file --- windows2usb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows2usb b/windows2usb index 203cbff..f7faf8c 100755 --- a/windows2usb +++ b/windows2usb @@ -178,7 +178,7 @@ function extract_bootmgfw_from_installwim() { local fpath="$2/sources/install.wim" [ ! -e "$fpath" ] && fpath="$2/sources/install.esd" - 7z e "$fpath" -aoa -o"$3/efi/boot/" '?/Windows/Boot/EFI/bootmgfw.efi' + 7z e "$fpath" -aoa -o"$3/efi/boot/" 'Windows/Boot/EFI/bootmgfw.efi' '?/Windows/Boot/EFI/bootmgfw.efi' umount "$2" }