Docs: sign local builds with a test key in mkosi.local.conf
os / os (push) Failing after 1m34s

mkosi genkey won't replace mkosi.crt, and the key options on the command
line miss the PCR and verity keys. mkosi already pulls in zstd and
qemu-img, so the workflow doesn't install them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-22 16:07:31 +00:00
1 parent b5aa2d7a59
commit 6a32e00431
3 files changed
+19 -8

No files matched your search

+2 -4
View File
@@ -72,10 +72,8 @@ podman exec -d -t mkosi sh -c 'mkosi -i -f --kernel-command-line-extra="\
-serial chardev:console > mkosi.output/vm.log 2>&1'
```
- Only CI has `mkosi.key`. For a test key, make one as in
[README.md](README.md#development) and point mkosi.local.conf at it:
`SecureBootKey=`, `SignExpectedPcrKey=` and `VerityKey=`, and their
`*Certificate=`, in `[Validation]`.
- mkosi signs with the test key of `mkosi.local.conf`
([README.md](README.md#development)), with paths as the container sees them.
- To register the test VM, register on the host with
`gitea-runner register --no-interactive --instance <url> --token <token>`
and pass the `.runner` it writes as a tmpfiles.extra credential: