-
-
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
boot: Development (& experimental) setup for SecureBoot #202497
Closed
RaitoBezarius
wants to merge
21
commits into
NixOS:master
from
RaitoBezarius:experimental-secureboot
Closed
boot: Development (& experimental) setup for SecureBoot #202497
RaitoBezarius
wants to merge
21
commits into
NixOS:master
from
RaitoBezarius:experimental-secureboot
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`bootDisk` was generated manually in a runVM command, this is now refactored using `make-disk-image` facility, enabling: - a better name: `systemImage` rather than `bootDisk`, i.e. bootDisk contained more than only the boot files in fact - support for arbitrary additional paths & contents with permissions & ownership, not exposed yet through public API though - UEFI firmware manipulation at make-disk-image time, e.g. SecureBoot can be tested - EFI firmware usage is simplified - bootDisk / rootDisk are clearly separated to support the case when we do not want the default filesystem, but still want a bootloader, or do not want bootloader but still want the default root filesystem, etc. - no multiple disk when it is not needed
- OVMF firmware can be compiled with SMM support ; - make-disk-image can enforce SMM ; - QEMU test infrastructure can enforce SMM ; - disable by default because it seems broken on OVMF
github-actions
bot
added
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
6.topic: policy discussion
8.has: changelog
8.has: documentation
This PR adds or changes documentation
8.has: module (update)
This PR changes an existing module in `nixos/`
labels
Nov 23, 2022
ofborg
bot
added
10.rebuild-darwin: 0
This PR does not cause any packages to rebuild on Darwin
10.rebuild-linux: 1-10
labels
Nov 23, 2022
13 tasks
RaitoBezarius
force-pushed
the
experimental-secureboot
branch
from
November 24, 2022 11:20
617c258
to
308e09c
Compare
This needs a rebase now. |
Will take care of this in the day. |
infinisil
added
the
significant
Novel ideas, large API changes, notable refactorings, issues with RFC potential, etc.
label
Apr 19, 2023
Closed in favor of #231951. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
6.topic: policy discussion
8.has: changelog
8.has: documentation
This PR adds or changes documentation
8.has: module (update)
This PR changes an existing module in `nixos/`
10.rebuild-darwin: 0
This PR does not cause any packages to rebuild on Darwin
10.rebuild-linux: 1-10
significant
Novel ideas, large API changes, notable refactorings, issues with RFC potential, etc.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
This is a PR being worked on, which should introduce a new stub (*) after systemd-boot, to boot a NixOS system with SecureBoot while keeping the nice properties about having a small ESP and many generations.
(*): So the idea has came while discussing it with @nikstur @blitz
TODO before going out of draft:
nixos-install-bootloader
idea?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/
)nixos/doc/manual/md-to-db.sh
to update generated release notes