remove outdated comment

This commit is contained in:
Travis Staton 2024-07-26 09:06:18 -04:00
parent 3375c37c2c
commit 336a0cf070

View file

@ -73,19 +73,6 @@ in
}; };
config = { config = {
boot.kernelParams =
if cfg.uboot.enable then [ ]
else [
# This is ugly and fragile, but the sdImage image has an msdos
# table, so the partition table id is a 1-indexed hex
# number. So, we drop the hex prefix and stick on a "02" to
# refer to the root partition.
"root=PARTUUID=${lib.strings.removePrefix "0x" config.sdImage.firmwarePartitionID}-02"
"rootfstype=ext4"
"fsck.repair=yes"
"rootwait"
"init=/sbin/init"
];
systemd.services = { systemd.services = {
"raspberry-pi-firmware-migrate" = "raspberry-pi-firmware-migrate" =
{ {
@ -309,16 +296,28 @@ in
else [ rpi-overlay ]; else [ rpi-overlay ];
}; };
boot = { boot = {
initrd.availableKernelModules = [ kernelParams =
"usbhid" if cfg.uboot.enable then [ ]
"usb_storage" else [
"vc4" # This is ugly and fragile, but the sdImage image has an msdos
"pcie_brcmstb" # required for the pcie bus to work # table, so the partition table id is a 1-indexed hex
"reset-raspberrypi" # required for vl805 firmware to load # number. So, we drop the hex prefix and stick on a "02" to
]; # refer to the root partition.
# This pin is not necessary, it would be fine to replace it with "root=PARTUUID=${lib.strings.removePrefix "0x" config.sdImage.firmwarePartitionID}-02"
# `kernel`. It is helpful to ensure "rootfstype=ext4"
# cache hits for kernel builds though. "fsck.repair=yes"
"rootwait"
"init=/sbin/init"
];
initrd = {
availableKernelModules = [
"usbhid"
"usb_storage"
"vc4"
"pcie_brcmstb" # required for the pcie bus to work
"reset-raspberrypi" # required for vl805 firmware to load
];
};
kernelPackages = pkgs.linuxPackagesFor kernel; kernelPackages = pkgs.linuxPackagesFor kernel;
loader = { loader = {
grub.enable = lib.mkDefault false; grub.enable = lib.mkDefault false;