bootify icon indicating copy to clipboard operation
bootify copied to clipboard

bootmgfw.efi is not always in 1/Windows/Boot/EFI/bootmgfw.efi

Open sebma opened this issue 5 years ago • 3 comments

Hi,

There some cases where the bootmgfw.efi is not in 1/Windows/Boot/EFI/bootmgfw.efi :

$ time 7z l sources/install.wim | grep -i efi/bootmgfw.efi$
2010-11-21 04:24:16 ....A       672640       314792  6/Windows/Boot/EFI/bootmgfw.efi
2010-11-21 04:24:16 ....A       672640       314792  7/Windows/Boot/EFI/bootmgfw.efi
2010-11-21 04:24:16 ....A       672640       314792  8/Windows/Boot/EFI/bootmgfw.efi
2010-11-21 04:24:16 ....A       672640       314792  9/Windows/Boot/EFI/bootmgfw.efi

real	0m41.849s
user	0m54.248s
sys	0m6.604s

Can you detect the bootmgfw.efi file location inside the sources/install.wim such as :

$ efi_file=$(7z l sources/install.wim | grep -m1 -i efi/bootmgfw.efi$ | awk '{print$NF}')
$ echo $efi_file
6/Windows/Boot/EFI/bootmgfw.efi

And this to your script ?

sebma avatar Feb 06 '19 03:02 sebma