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

+9
View File
@@ -110,3 +110,12 @@ RemoveFiles=
/usr/lib/systemd/system/systemd-homed*
/usr/lib/systemd/system/systemd-userdbd.*
/usr/lib/systemd/system/systemd-nsresourced.*
[Validation]
# Signs systemd-boot and the UKI for Secure Boot, and puts our keys on the ESP, where systemd-boot
# enrolls them at first boot if the firmware is in setup mode (no keys enrolled; in Proxmox, an EFI
# disk without pre-enrolled keys). mkosi.crt is the certificate; mkosi.key, its private key, is the
# SECUREBOOT_KEY secret of this repository, which the os workflow writes to mkosi.key.
SecureBoot=yes
SecureBootKey=mkosi.key
SecureBootCertificate=mkosi.crt