ipxe / wimboot

WIM bootloader
https://ipxe.org/wimboot
GNU General Public License v2.0
234 stars 42 forks source link

wimboot Bad CPIO Magic FATAL: could not extract inited file #29

Closed abdullah-erturk closed 2 years ago

abdullah-erturk commented 2 years ago

I work at university and ipxe server is used a lot.

I am using the latest version of wimboot.

When a request is made in bios mode on my ipxe server, I encounter an error as in the picture.

It boots fine in efi mode.

I also used old version wimboot files and got the same error.

I searched a lot on the internet but none of the solution suggestions worked.

I hope you can find a solution.

Here is the code in my boot.ipxe file:

`#!ipxe set boot-url http://myipxeserver.com/ cpuid --ext 29 && set arch x86_64 || set arch i386 ; echo CPU Arch: ${platform} ${arch} goto ${platform}

:efi set path_file /WinPE/Acronis/boot.wim kernel ${boot-url}/Tools/MS/pxe/wimboot
initrd ${boot-url}/Tools/MS/pxe/efi/microsoft/boot/bcd
initrd ${boot-url}/Tools/MS/boot.sdi
initrd ${boot-url}${path_file}
boot || goto failed

:pcbios set path_file /WinPE/Acronis/boot.wim kernel ${boot-url}/Tools/MS/pxe/wimboot rawbcd
initrd ${boot-url}/Tools/MS/pxe/boot/bcd bcd
initrd ${boot-url}/Tools/MS/boot.sdi boot.sdi
initrd ${boot-url}${path_file}
boot || goto failed

:failed chain --autofree http://myipxeserver.com//menu.ipxe`

wimboot_error

abdullah-erturk commented 2 years ago

I fixed the problem :)

I specified the file name in the initrd ${boot-url}${path_file} line in the boot.ipxe codes in BIOS mode and the problem was solved.

in that: initrd ${boot-url}${path_file} boot.wim