-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos: unstable fails to load luks encrypted btrfs drive #303246
Comments
I think sharing your hardware configuration file may help here. I am running the same setup (unstable packages and btrfs in a luks container) with no issues. My hardware-config:
And I also have this line in my configuration.nix: |
Also the second thing: it is reccomended to use a git repository to keep track of the changes you make to your nix configuration. Is there maybe something else that has changed in your configuration except for the unstable packages? I really do not see how they would influence the ability to boot your system. |
Check out my flake already linked in the issue description @betalars, the only difference from what's there is I had the btrfs root partition mounted to root instead of the current ext4 partition in I tried both /dev/by-id (nixos default) and /dev/by-label in the hardware config, for the btrfs drive, both failed to come online on unstable but would on stable. Afaik it's preferable to use by id or label to avoid any possible issues with how the kernel mounts the drives (and why nixos has it as the default in the generated hardware config) Side note: Could this be related to stateVersion? Started with 23.11, but upgraded to 24.05? Seems weird that this would only affect btrfs and not ext4 though |
Sorry, I did not make the connection that your flake would also include the hardware config. at this point i unfortunately have to say it works for me and I am in way over my head. |
Summary
After upgrading a fresh nixos install to nixos-unstable from a flake, systemd init fails to detect the btrfs partition after luks decryption
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
The btrfs drive should be detected
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I was able to get a working setup using ext4 as an alternative
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: