docs: sign local builds with mkosi -f genkey
It replaces mkosi.crt for local tests, without openssl or a mkosi.local.conf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b978c189ae
commit
00daa97950
3 files changed
+3
-20
No files matched your search
@@ -66,6 +66,7 @@ CMD ["/sbin/init"]
|
||||
END
|
||||
podman run -d --name mkosi --privileged --systemd=always -v <repo>:/repo \
|
||||
-v mkosi-cache:/root/.cache/mkosi -v mkosi-work:/var/tmp -w /repo mkosi-vm
|
||||
podman exec mkosi mkosi -f genkey # Run this once. Don't commit mkosi.crt.
|
||||
podman exec mkosi mkdir -p mkosi.cache
|
||||
podman exec -d -t mkosi sh -c 'mkosi -i -f \
|
||||
--kernel-command-line-extra=console=ttyS0 vm -- -serial chardev:console \
|
||||
@@ -73,7 +74,6 @@ podman exec -d -t mkosi sh -c 'mkosi -i -f \
|
||||
podman exec mkosi mkosi ssh -- systemctl --failed
|
||||
```
|
||||
|
||||
- mkosi signs with the test key from [README.md](README.md#development).
|
||||
- `mkosi -i` keeps the image with its packages installed in `mkosi.cache/`.
|
||||
Rebuilds start from it and skip installing packages.
|
||||
- The volume `mkosi-work` keeps mkosi's workspace in /var/tmp off overlayfs.
|
||||
|
||||
Reference in new issue
Block a user