-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
add boot.initrd.unl0kr #218441
add boot.initrd.unl0kr #218441
Conversation
https://gitlab.com/cherrypicker/unl0kr/-/issues/36 is now fixed, and after updating this test to use unl0kr 2.0.0, this test now passes. I'll tidy up this PR. |
3fcb448
to
a9bc245
Compare
@ElvishJerricco @samueldr, thoughts? |
nixos/modules/system/boot/unl0kr.nix
Outdated
storePaths = with pkgs; [ | ||
gnugrep | ||
libinput | ||
xkeyboard_config | ||
systemd | ||
unl0kr | ||
]; |
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.
These should probably be minimized, if possible. Like ideally we would be overriding unl0kr
or whatever needs systemd
to use config.boot.initrd.systemd.package
instead. And only the files specifically needed from these other packages would be listed here.
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.
SGTM. I've reduced systemd to just systemd's systemd-reply-password binary, and pulled that from config.boot.initrd.systemd.package
.
I will leave this comment thread open for me to look into reducing the size of other dependencies if possible.
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.
@tomfitzhenry I still think these need to be reduced further. As is, you're including things like manpages. Like maybe just the /bin
subdirectories or something like that.
8a65bdc
to
b5ce4a5
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.
Two nits, mainly, though I haven't tested, only read the changes to see if it looked fine.
Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
@ofborg test systemd-initrd-luks-unl0kr |
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.
Assuming ofborg passes the test, LGTM
Description of changes
unl0kr is a "Framebuffer-based disk unlocker for the initramfs based on LVGL".
Test via
nix-build -A nixosTests.systemd-initrd-luks-unl0kr
.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)