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