mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 19:46:10 +01:00
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:
parent
e4c6ee69e7
commit
ec135126c1
1 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,8 @@
|
||||||
"vc4"
|
"vc4"
|
||||||
"pcie_brcmstb" # required for the pcie bus to work
|
"pcie_brcmstb" # required for the pcie bus to work
|
||||||
"reset-raspberrypi" # required for vl805 firmware to load
|
"reset-raspberrypi" # required for vl805 firmware to load
|
||||||
];
|
]
|
||||||
|
++ lib.optional config.boot.initrd.network.enable "genet";
|
||||||
|
|
||||||
# Allow building kernel
|
# Allow building kernel
|
||||||
initrd.systemd.tpm2.enable = false;
|
initrd.systemd.tpm2.enable = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue