mirror of
https://github.com/ValdikSS/windows2usb.git
synced 2023-08-10 21:13:16 +03:00
Extract bootmgfw.efi from both .wim and .esd (customized Win7 ISO)
This commit is contained in:
parent
6fc6f0ad94
commit
9361a3cd4b
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user