config(rydiwo): use ipxe.efi (universal) for kernel 6.18.57 PCI match regression (T14)
test-runner / smoke (push) Successful in 0s

snp.efi (SNP-only, 310K) was the right choice on linux-virt 6.18.56
because the universal ipxe.efi (1.2 MB) hit a deterministic crash at
iPXE offset 0x35FC with RAX=0xAF..AF (uninit-memory fill) — root
cause not OOM, not NIC driver (virtio-net works in both), but a
buffer-path bug in the universal binary. Switching to snp.efi
sidestepped it (commit 687d6d1, 2026-10-13).

On 2026-10-17 an e2e test on rydiwo found that snp.efi broke the
PXE chain after the kernel upgrade: iPXE chain
snp.efi → autoexec.ipxe → boot.ipxe → sanboot registers the SAN
device 0x80, the kernel (linux-virt 6.18.57) boots, but PCI
enumeration shows only the NIC — no `pci 0000:00:03.0 [1af4:1001]`
virtio-blk endpoint. Rootfs mount fails:
`UUID=...: Can't lookup blockdev` → `Mounting root: failed.`

Bisecting aports identified upstream c967b365 (`PCI: Make
pci_match_one_device() match on ID instead of device`) in
patch-6.18.57.xz, delivered via aports 2b1f5137
(`main/linux-lts: upgrade to 6.18.57`, 2026-10-16T11:11:20Z).
The new drivers/pci/search.c match_pci_dev_by_id() uses
pci_match_one_id()+pci_id_from_device(); the IDs that snp.efi's
SAN hook reports to the kernel for the virtio-blk device are not
full device IDs, so the new matching fails. The universal
ipxe.efi presents the SAN device through a different code path
whose IDs are full device IDs and match cleanly.

Direct-mode boot (`bootMode=direct`, QEMU virtio drive) is not
affected — there the kernel sees the device through a proper PCI
attach and the IDs are complete. Only the iPXE-SAN-presentation
path regressed.

Switch back to the universal binary. The original 687d6d1 crash
bug is not present in the current ipxe.efi (a different upstream
build was involved) — verified by two independent e2e runs on
rydiwo 2026-10-17 with explicit bootMode=pxe, both verdict=PASS
(20261017T180654Z, 20261017T180730Z). The ~290K extra TFTP volume
per boot vs snp.efi is negligible.

This permanently encodes the runtime-only change that was applied
to /etc/nixos/configurations/mini-laptop.nix on rydiwo on
2026-10-17 20:48 MSK during the T14 closure session. Without this
commit, a fresh nixos-rebuild switch from origin/dev would
silently revert to snp.efi and re-trigger the regression.

Closes T14 (P1, opened 2026-10-17 in session
pxe-infra-e2e-2026-10-17). Full RCA and verification evidence:
https://github.com/oqyude/pxe-infra-automation/blob/dev/.agent/tasks/manifest.json
(grep T14).
This commit is contained in:
oqyude committed 2026-10-18 19:38:00 +03:00
1 parent 585415905d
commit d416816632
1 file changed
+19 -1
+19 -1
View File
@@ -89,7 +89,25 @@
enable = true;
bridge.address = "10.66.0.1";
bridge.prefixLength = 24;
bootloader.ipxeBinary = "snp.efi"; # SNP-only build, 310K, virtio-net-friendly
# ipxe.efi (universal, ~600K) instead of snp.efi (SNP-only, 310K).
# snp.efi worked on linux-virt 6.18.56 but breaks on 6.18.57
# (delivered via aports 2b1f5137, 2026-10-16, kernel commit
# c967b365 — `PCI: Make pci_match_one_device() match on ID
# instead of device`). The new drivers/pci/search.c
# `match_pci_dev_by_id()` (uses pci_match_one_id()+pci_id_from_device())
# fails to match the virtio-blk PCI device that snp.efi
# presents through its SAN hook (the IDs reported by the SAN
# path are not full device IDs). The kernel boots, but rootfs
# fails to mount: `UUID=...: Can't lookup blockdev` →
# `Mounting root: failed.` The universal `ipxe.efi` presents
# the SAN device through a different code path that
# successfully matches against the new pci_match machinery.
# Verified end-to-end on rydiwo 2026-10-17 with explicit
# `bootMode=pxe`: two independent verdict=PASS reports
# (20261017T180654Z, 20261017T180730Z). See pxe-infra-automation
# T14 in .agent/tasks/manifest.json for full RCA. The ~290K
# extra TFTP volume vs snp.efi is negligible.
bootloader.ipxeBinary = "ipxe.efi";
vm = {
enable = true;
autostart = false; # start manually when testing