a1ive / grub

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

Extract bootmgr and bootmgfw.efi from wimfile if not specified #71

Closed gilliginsisland closed 4 years ago

gilliginsisland commented 4 years ago

Upstream wimboot can automatically extract bootmgr in bios mode and bootmgfw.efi in efi mode from the wim file when they are not specified in the command.

https://github.com/ipxe/wimboot/blob/55cfe8a36090db5413afbb47b58b5c5bfeff8ea5/src/main.c#L344 https://github.com/ipxe/wimboot/blob/55cfe8a36090db5413afbb47b58b5c5bfeff8ea5/src/efifile.c#L204

Together with the built in BCD store that you added, this would allow booting a boot.wim file without needing any other supporting files.

a1ive commented 4 years ago

The wimboot module in BIOS is still unstable and compatibility is not good. I may rewrite it in the future (and add this feature).

gilliginsisland commented 4 years ago

Cool. Thanks for all the work you've put into this fork of grub, the addition of the mem and wimboot modules have been invaluable.

steve6375 commented 4 years ago

Not compatible with older menus. If bcd or boot.sdi, is specified in wimboot list then it now fails to work.

a1ive commented 4 years ago

Not compatible with older menus. If bcd or boot.sdi, is specified in wimboot list then it now fails to work.

It is compatible with older menus. wimboot @:bootmgfw.efi:/wim/bootmgfw.efi @:bcd:/wim/bcd @:boot.sdi:/wim/boot.sdi @:boot.wim:/wim/winpe.wim works for me.

steve6375 commented 4 years ago

oh sorry - the files are no longer in wimboot.xz. My mistake!