@george1421 said in Booting WinePE on uefi system:
I did not post this in the thread because it didn’t work for the tutorial. Here is what I was working on for the boot image. Its not 100% accurate for what you need, but it does explain a few things.
- You need to use wimboot to fix a few evils that MS imposes.
- The file name on the end is needed for bios systems
- the -n <name> is needed for uefi systems.
- You can use the same concepts and even menu for both uefi and bios systems, you just have to be a little sneaky.
Assume this code snippet is broken because I haven't proved that it works or not.
kernel tftp://${fog-ip}/wimboot gui initrd -n bootx64.efi tftp://${fog-ip}/boot/bootx64.efi bootx64.efi initrd -n bcd tftp://${fog-ip}/boot/bcd bcd initrd -n boot.sdi tftp://${fog-ip}/boot/boot.sdi boot.sdi initrd -n segmono_boot.ttf tftp://${fog-ip}/boot/fonts/segmono_boot.ttf segmono_boot.ttf initrd -n segoe_slboot.ttf tftp://${fog-ip}/boot/fonts/segoe_slboot.ttf segoe_slboot.ttf initrd -n segoen_slboot.ttf tftp://${fog-ip}/boot/fonts/segoen_slboot.ttf segoen_slboot.ttf initrd -n wgl4_boot.ttf tftp://${fog-ip}/boot/fonts/wgl4_boot.ttf wgl4_boot.ttf initrd -n boot.wim tftp://${fog-ip}/boot/boot.wim boot.wim boot
If you look at this post you can see how you can dynamically detect between bois and uefi systems. https://forums.fogproject.org/topic/11873/single-ipxe-menu-entry-for-both-bios-uefi
So for uefi systems you load the uefi kernel and for the bios systems you load the bios winpe kernel.
This worked great. WinePE booted on UEFI system. Thank you again for the great fast reply @george1421 So with your guidance this is my final entry for Winpe:
login
iseq ${platform} pcbios && goto mem_bios || goto no_mem
:mem_bios
kernel memdisk
initrd nfs://10.100.0.55:/winimgs/iso/win10install/WinPE_amd64.iso
chain memdisk iso raw
boot || goto MENU
:no_mem
kernel nfs://10.100.0.55/winimgs/iso/Winpe/wimboot gui
initrd -n bootx64.efi nfs://10.100.0.55/winimgs/iso/Winpe/bootx64.efi bootx64.efi
initrd -n bcd nfs://10.100.0.55/winimgs/iso/Winpe/BCD bcd
initrd -n boot.sdi nfs://10.100.0.55/winimgs/iso/Winpe/boot.sdi boot.sdi
initrd -n segmono_boot.ttf nfs://10.100.0.55/winimgs/iso/Winpe/segmono_boot.ttf segmono_boot.ttf
initrd -n segoe_slboot.ttf nfs://10.100.0.55/winimgs/iso/Winpe/segoe_slboot.ttf segoe_slboot.ttf
initrd -n segoen_slboot.ttf nfs://10.100.0.55/winimgs/iso/Winpe/segoen_slboot.ttf segoen_slboot.ttf
initrd -n wgl4_boot.ttf nfs://10.100.0.55/winimgs/iso/Winpe/wgl4_boot.ttf wgl4_boot.ttf
initrd -n boot.wim nfs://10.100.0.55/winimgs/iso/Winpe/boot.wim boot.wim
boot || goto MENU
Now it’s still odd…it booted fine the first time on my uefi system but the second time i got the connectiuon timed out again…seems like something odd with the uefi network stack on this dell latitude E5550 laptop or something…