Load the modules in initrd

This commit is contained in:
Rodrigo Arias 2024-09-05 09:48:36 +02:00
parent 7817c4be2d
commit 1787d2cede

View File

@ -78,10 +78,7 @@
# Add the custom Ethernet module
pkgs.xilinx-axienet-carv
];
kernelModules = [
# Load the Ethernet module by default
"xilinx_axienet_carv"
];
kernelModules = config.boot.initrd.kernelModules;
kernelPatches = [
{
name = assert false; "sbi-early-console";
@ -147,7 +144,10 @@
initrd = {
# Avoid zstd as we don't have the tools in "cucu" machine
compressor = "gzip";
kernelModules = [ ];
kernelModules = [
# Load the Ethernet module by default
"xilinx_axienet_carv"
];
# Custom init script
extraFiles = {