oneohthree / bootify

Bash script to make USB drives bootables with Windows 7/8/8.1/10 installation files
GNU General Public License v2.0
32 stars 4 forks source link

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

Open sebma opened 5 years ago

sebma commented 5 years ago

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 ?

oneohthree commented 5 years ago

Could you tell Windows version including architecture you are using when this happens?

sebma commented 5 years ago

@oneohthree Hi, sorry I couldn't reply sooner, but I just came back home.

It is taken from an All in one Windows7 SP1 x86 and x64 bits ISO.

oneohthree commented 5 years ago

Well, I didn't test against that type of ISO. I believe Microsoft didn't release multiarch Windows 7. In my opinion you should use 'official' ISOs by Microsoft.