-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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/bcachefs: support unlock with clevis in systemd stage 1 #295736
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me, though I haven't tested it in any way. Maybe we should add the clevisBcachefs
test to nixos/tests/installer-systemd-stage-1.nix
?
I'll test this on my device during this week |
I tested the change on physical hardware, works for me. |
Some of clevis tests are broken currently so I was not able to add the tests so far. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of clevis tests are broken currently so I was not able to add the tests so far.
I think that's a blocker.
Sounds like #300757 will fix the test. Let's add the test in this PR after that's merged. |
cdaae3d
to
5afb7f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#300757 has landed, rebased on master and added the two tests.
Tested on local hardware for a week, tests are going through, LGTM.
Description of changes
Update the unlock script for bcachefs devices to attempt to use Clevis to unlock, as currently this only works in scripted stage 1.
I tested it on my Framework 13 by using PCR 7 and toggling whether SecureBoot was enabled. With it enabled, I wasn't prompted for my passphrase and booted to my display manager without input. With SecureBoot disabled, the unlock with Clevis failed and I was prompted for my passphrase.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.