nix-community / raspberry-pi-nix

NixOS modules to aid in configuring NixOS for raspberry pi products
MIT License
144 stars 34 forks source link

disabling rootwait; `root=` is invalid. #30

Closed Yash-Garg closed 1 month ago

Yash-Garg commented 1 month ago

I get this error while trying to build an sdImage, setting boot.initrd.systemd.enableTpm2 = lib.mkForce false; works but just confirming if this is expected?

Also, for some reason the built sdImage doesn't boot for me on Raspberry Pi 5. Config

Disabling rootwait; root= is invalid.
/dev/root: Can't open blockdev
bddvlpr commented 1 month ago

I'm still getting root=fstab is invalid. How did you resolve this?

Yash-Garg commented 1 month ago

I'm still getting root=fstab is invalid. How did you resolve this?

In my case it was due to the nixosModules.server I was using from srvos, removing that fixed it for me, hardware-configuration.nix is here for reference.

bddvlpr commented 1 month ago

I ended up just disabling systemd on initrd like so; boot.initrd.systemd.enable = false; so I could keep the srvos module.