-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
nixos/systemd-boot: create boot entries for specialisations #108338
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
Conversation
@ofborg test systemd-boot |
nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
Outdated
Show resolved
Hide resolved
e555c8c
to
d483cee
Compare
@ofborg eval |
1 similar comment
@ofborg eval |
nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
Outdated
Show resolved
Hide resolved
d483cee
to
b9205e4
Compare
What about grub? Does it support booting into specializations? |
What is the current status of that? I would like to see that feature being merged :) Also would like to help if needed. |
@misuzu as far as I understand the documentation and the source code, yes it is supported for grub. This PR just enables the same behaviour for systemd-boot as available for grub already. |
Willing to sponsor work on this to get it over the line, relatively critical for my use-case. |
b9205e4
to
4599f0a
Compare
@ofborg test systemd-boot |
nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
Outdated
Show resolved
Hide resolved
Some specialisations (such as those which affect various boot-time attributes) cannot be switched to at runtime. This allows picking the specialisation at boot time.
Looks good to me except the comment above. I have not tested it yet. |
4599f0a
to
13fad0f
Compare
I think this probably needs a larger refactoring to swap what I named "SystemIdentifier" to a proper dataclass or something. But I think that's probably deserving of a separate change. |
I tested systemd-boot with and without specialisations. Both works for me. |
Motivation for this change
Some specialisations (such as those which affect various boot-time
attributes) cannot be switched to at runtime. This allows picking the
specialisation at boot time.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)