raspberry-pi/4: add genet module to initrd if netboot

This module is required to have Ethernet in initial RAM disk.

It solves the issue encountered in this thread:
https://discourse.nixos.org/t/netboot-into-nfs-root-instead-of-the-fat-netboot-ramdisk/8556/2
This commit is contained in:
Issam E. Maghni
2025-11-04 10:05:41 -05:00
parent e4c6ee69e7
commit ec135126c1

View File

@@ -35,7 +35,8 @@
"vc4"
"pcie_brcmstb" # required for the pcie bus to work
"reset-raspberrypi" # required for vl805 firmware to load
];
]
++ lib.optional config.boot.initrd.network.enable "genet";
# Allow building kernel
initrd.systemd.tpm2.enable = false;