diff --git a/modules/system/boot/loader/raspberrypi/builder.sh b/modules/system/boot/loader/raspberrypi/builder.sh index 2a32fcd540e..f6ccfe493d8 100644 --- a/modules/system/boot/loader/raspberrypi/builder.sh +++ b/modules/system/boot/loader/raspberrypi/builder.sh @@ -77,7 +77,7 @@ addEntry() { copyForced $kernel /boot/kernel.img # copyForced $initrd /boot/initrd cp "$(readlink -f "$path/init")" /boot/nixos-init - cp $path/kernel-params /boot/cmdline.txt + echo "`cat $path/kernel-params` init=$path/init" >/boot/cmdline.txt echo "$2" > /boot/defaultgeneration fi