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
d1c7c55700
commit
d76d28ef8a
3 files changed
+3
-23
No files matched your search
@@ -66,14 +66,13 @@ 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 systemd.journald.forward_to_console=1" vm -- \
|
||||
-serial chardev:console > mkosi.output/vm.log 2>&1'
|
||||
```
|
||||
|
||||
- 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:
|
||||
|
||||
Reference in new issue
Block a user