Hello. I have DIY multiboot grub2 usb drive. I want to boot Win10XPE from iso:
menuentry "ISO Windows 10 20H2 64bit (Preinstall Enviroment) /WIMBOOT" {
set root=(hd0,msdos2);
set isoname=/Windows/Win10XPE_x64.ISO
loopback loop "$isoname"
GetWimbootFiles
wimboot --pause \
@:boot.sdi:$sdi \
@:bootmgfw.efi:(loop)/efi/boot/bootx64.efi \
@:boot.wim:$wim \
@:bcd:$bcd
boot
}
Win10XPE needs to load XPEStartup.cmd to mount iso as Y: and give acces to custom software. It works if booted from partiton by chainloading but not like my setup.