-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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/systemd-boot: add option to boot from systemd-stub #265273
Conversation
333068e
to
4658e45
Compare
1ecaade
to
c68400f
Compare
@ofborg test systemd-boot |
So, before getting too far with this, we might want to consider how it relates to systemd/systemd#27358, systemd/systemd#28057, and to a lesser extent systemd/systemd#28070. With these, we can separate the cmdline from the stub-ified kernel+initrd (and with systemd/systemd#28070 we can even separate the initrd) as long as we use Type 1 entries. I am sort of wondering how to ensure that a cmdline addon is only used with the right kernel+initrd, since a given generation should only boot the right ones (I am thinking forward about how to sign this stuff for secure boot). I think it would suffice to just have the initrd contain a file that lists the output paths of the initrd and kernel in the nix store, and to also have those paths in a cmdline parameter. Then initrd just has to check that the contents of that file match the cmdline, and abort otherwise. |
@ElvishJerricco I am aware of these |
c68400f
to
f39a639
Compare
Description of changes
This depends on #263442, and will stay in draft until it is merged for that reason.
Enables the possibility to boot from
systemd-stub
, in preparation for a followup PR allowing encrypted initrd secrets.Booting from
systemd-stub
, even if secure boot is not enabled brings some benefits including tpm measurement and forwarding of the encrypted credentials to theinitrd
.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/
)