mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 23:25:54 +03:00
[GH-ISSUE #1070] Flatcar PXE boot is broken in netboot.xyz #1828
Labels
No labels
Hacktoberfest
Hacktoberfest
bootloader
bsd
bug
confirmed
documentation
duplicate
enhancement
enhancement
enhancement
eol
experimental-merged
freebsd
help wanted
invalid
investigate
ipxe
linux
live-os
memdisk
menu
no-issue-activity
no-issue-activity
pull-request
released
todo
upstream
windows
windows
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz#1828
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jepio on GitHub (Feb 2, 2022).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1070
Describe the bug
Flatcar PXE booting appears to not work correctly in netboot.xyz. Flatcar ships with an initramfs embedded in the kernel, and a second one that gets overlayed when pxe booting (the second one is passed through the usual iPXE protocol). This works in our testing when
initrd=flatcar_production_pxe_image.cpio.gzis provided on the kernel command line. Since commitgithub.com/netbootxyz/netboot.xyz@efc9fa5dd1 (diff-d3aefe4b4c)aninitrd=initrd.magicparameter is passed instead and this breaks boot, as the second initramfs is missing.I tested with netboot.xyz 2.0.40, which didn't have that commit, and UEFI iPXE boot of Flatcar works correctly. BIOS iPXE boot doesn't work in netboot.xyz 2.0.40, so there appears to be a required iPXE fix since then (we test current iPXE builds directly in many environments and those work)
To Reproduce
Steps to reproduce the behavior:
qemu-system-x86_64 -enable-kvm -m 4096 -smp 2 -cdrom netboot.xyz.isoExpected behavior
Machine boots to login prompt.
Screenshots
Additional context
@holymoly commented on GitHub (Feb 25, 2022):
The commit solved the issue partly. When booting is using UEFI it works perfectly. When used in Bios mode there is still an error which also was discussed here https://github.com/flatcar-linux/Flatcar/issues/586#issuecomment-1041476482.
[ 0.932433] Initramfs unpacking failed: invalid magic at start of compressed archive