nix-community / raspberry-pi-nix

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

/dev/root: Can't open blockdev #43

Closed Svenum closed 3 weeks ago

Svenum commented 1 month ago

I build the sd-image for the raspberry pi 5 and got this error:

...
Disabling rootwait; root= is invalid
/dev/root: Can't open blockdev
VFS: Cannot open root device "fstab" or unknown-block(0,0): error -6

If I look on the sd card I only see the folder "nix" and "sbin" every other folder like "lib", "etc", "tmp", ... is missing.

Any Idea on that?

Everytime I build the image I have to recompile the linux kernel even if I use cachix nix-community cache. So I hope not to rebuild this often.

Here is my config: https://github.com/Svenum/holynix/tree/raspi/systems/aarch64-linux/srv-raspi

SebTM commented 4 weeks ago

Hey, you are following your nixpkgs for raspberry-pi-nix in your flake.nix (https://github.com/Svenum/holynix/blob/raspi/flake.nix#L72C7-L73C1) which makes the cache not hit as we built against the nixpkgs-commit of the lock file at commit time.

~But I'm not fully certain, if the next issue would be the use of zfs as it's not included in the kernel (and might cause a rebuild) but didn't use it on a pi yet and switched to btrfs in general.~

You only disable zfs as supported filesystem ✌🏻

Svenum commented 4 weeks ago

Building without zfs works, and not using nixpkgs for raspberry-pi-nix in my flake seems to not compile the kernel, but webkitgtk-2.44.2 is still getting compiled and needs a very long time. Is this also cached?

Svenum commented 3 weeks ago

setting networking.networkmanager.plugins = lib.mkForce [] removed the webkitgtk dependency