Extract bootmgfw.efi from both .wim and .esd (customized Win7 ISO)

This commit is contained in:
ValdikSS 2022-01-09 16:15:12 +03:00
parent 6fc6f0ad94
commit 9361a3cd4b

View File

@ -155,8 +155,11 @@ function extract_bootmgfw_from_installwim() {
# $2 - isomountpath # $2 - isomountpath
# $3 - destdir # $3 - destdir
local fpath="$2/sources/install.wim"
[ ! -a "$fpath" ] && fpath="$2/sources/install.esd"
mount -o ro "$1" "$2" mount -o ro "$1" "$2"
7z e "$2/sources/install.wim" -o"$3/efi/boot/" 1/Windows/Boot/EFI/bootmgfw.efi 7z e "$fpath" -o"$3/efi/boot/" '?/Windows/Boot/EFI/bootmgfw.efi'
umount "$2" umount "$2"
} }