-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't require using systemd-boot to get automated firmware updates
Using systemd-boot is not a requirement for applying capsule updates. We can make the firmware update process a systemd service, which gives us the behavior of running on every `switch-to-configuration` when the capsule update file changes. We do not apply the firmware update if we notice that the currently active nixos system (represented by /run/current-system) is not the same as the system profile that is persisted to /nix/var/nix/profiles/system. This allows us to retain the behavior from before this change where a user running `nixos-rebuild test` or similar will not have a capsule update applied.
- Loading branch information
Showing
2 changed files
with
61 additions
and
36 deletions.
There are no files selected for viewing
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
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