Skip to content

FOS: network-failure debug output + drop unused NBD driver#112

Open
mastacontrola wants to merge 2 commits into
masterfrom
network-debug-and-nbd
Open

FOS: network-failure debug output + drop unused NBD driver#112
mastacontrola wants to merge 2 commits into
masterfrom
network-debug-and-nbd

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

Two small cleanups:

Network-failure debug output (fixes #42, supersedes #77)

When S40network runs out of interfaces without reaching the FOG server, it now prints:

  • kernel version and init version
  • lspci -nn network devices — the [vendor:device] IDs are exactly what we need to identify a missing driver
  • lshw -c network -businfo — also catches USB NICs and unclaimed hardware

The boot banner now shows the kernel version as well. This makes "no NIC driver" reports like #110 self-diagnosing instead of needing a debug-mode round trip with the reporter. Credit to @rluzuriaga for the original idea in #77 — that PR predates the recent funcs.sh refactoring, so this re-implements it on current master.

Sample output on failure:

Debug information (please include this when reporting network issues):
   Kernel version: 6.12.35
   Init version: 20260305
   Network hardware on the PCI bus:
      00:1f.6 Ethernet controller [0200]: Intel Corporation 400 Series Chipset Family GbE Controller [8086:0d4c]
   Network hardware seen by lshw:
      Bus info          Device        Class          Description
      ==========================================================
      pci@0000:00:1f.6  eno2          network        400 Series Chipset Family GbE Controller

Both lspci (pciutils) and lshw are already built into the rootfs on all three arches.

Remove NBD from the kernel configs (fixes #71)

CONFIG_BLK_DEV_NBD=y has been set since the early days but nothing uses it — the rootfs builds no nbd userspace tools and no FOS script references it. Disabled on x64/arm64/x86 as discussed in #71.

Verified: bash -n on both scripts, the debug block exercised live, and tests/golden/run.sh check passes byte-identical.

🤖 Generated with Claude Code

mastacontrola and others added 2 commits July 5, 2026 06:51
The NBD (network block device) kernel driver has been enabled since the
early days but nothing uses it: the rootfs builds no nbd-client/nbd-server
and no FOS script references /dev/nbd. Disable CONFIG_BLK_DEV_NBD on all
three architectures.

Fixes #71

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
When S40network exhausts every interface without reaching the FOG server,
print the kernel version, init version, lspci -nn network devices (the
[vendor:device] IDs identify which driver is missing) and lshw network
output (covers USB NICs and unclaimed hardware). Also show the kernel
version in the boot banner.

This makes "missing NIC driver" reports self-diagnosing instead of
requiring a debug-mode round trip with the reporter.

Fixes #42, supersedes #77

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove NBD from the kernel configs More advanced information when network issues occur

1 participant