a1ive / grub

Fork of GRUB 2 to add various features.
GNU General Public License v3.0
138 stars 38 forks source link

Fix wimboot for x64 UEFI windows installer #73

Closed tarruda closed 4 years ago

tarruda commented 4 years ago

Currently wimboot does not seem to be working for booting windows 7 installer in EFI x64 mode. I'm using the following command:

wimboot --gui @:boot.wim:/pathto/sources/boot.wim @:bcd:/pathto/boot/bcd @:boot.sdi:/pathto/boot/boot.sdi

This works in BIOS mode, but in EFI x64 it fails with this screen:

grub-wimboot-failure

The last version wimboot worked for me in EFI mode was 68596aea36cea22012f6d372fc3012b72a6a23d9, it stopped working at 30922b6e7b91c1b0b0dd3a392166e6a4a23b2633 where BIOS support was added. The only difference I found between the way bootmgfw.efi was loaded, was that BOOTX64.efi was passed as the name to wim_add_file.

Assuming this will fail for other EFI architectures, I changed WIM_BOOTMGR_NAME to match BOOT_FILE_NAME, though I only have tested in EFI x64.

a1ive commented 4 years ago

Does this also work for win8/win10?

tarruda commented 4 years ago

Does this also work for win8/win10?

I tested on windows 7/8/10 64bit installers