Secure Boot

mkosi signs systemd-boot and the UKI with our own key (mkosi.crt; the private
key is the SECUREBOOT_KEY secret, which the os workflow writes to mkosi.key)
and puts the keys on the ESP. systemd-boot enrolls them at first boot if the
firmware is in setup mode: in Proxmox, an EFI disk without pre-enrolled keys.
Hosts installed before this keep their unsigned systemd-boot (updates don't
replace it), so they boot as before, without Secure Boot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-14 22:43:54 +01:00
1 parent f3dfbb4f78
commit 0569bce676
5 files changed
+43 -5

No files matched your search

+7 -2
View File
@@ -20,11 +20,16 @@ jobs:
AUTH: "Authorization: token ${{ github.token }}"
steps:
- name: Install tools
run: dnf install -yq mkosi
run: dnf install -yq mkosi sbsigntools
- name: Check out
uses: builtin:checkout
# Signs systemd-boot and the UKI for Secure Boot (mkosi.conf, [Validation]).
- name: Build
run: mkosi build
env:
KEY: ${{ secrets.SECUREBOOT_KEY }}
run: |
(umask 077 && printf '%s\n' "$KEY" > mkosi.key)
mkosi build
- name: Compress
working-directory: mkosi.output
run: |