add initrd

This commit is contained in:
Travis Staton 2024-11-03 12:06:15 -05:00
parent d039a262ce
commit ee53143215
No known key found for this signature in database
GPG key ID: E883E53CDAC16260
2 changed files with 13 additions and 0 deletions

View file

@ -23,6 +23,7 @@
version = cfg.kernel-version;
board = cfg.board;
kernel = pkgs.rpi-kernels."${version}"."${board}";
initrd = "${config.system.build.initialRamdisk}/${config.system.boot.loader.initrdFile}";
populate-kernel =
if cfg.uboot.enable
then ''
@ -30,6 +31,7 @@
''
else ''
cp "${kernel}/Image" firmware/kernel.img
cp "${initrd}" firmware/initrd
cp "${kernel-params}" firmware/cmdline.txt
'';
in