diff --git a/README.md b/README.md index 2a45bad..73687d4 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,13 @@ Download [the disk image](https://git.plabble.org/Job79/git-runner-mkosi/release ```sh mkosi build -mkosi vm ``` -`mkosi.output/` then holds the disk image, and the UKI and /usr partitions that the `os` workflow publishes as an update. +`mkosi.output/` then holds the disk image (`git-runner_.raw`), and the UKI and /usr partitions that the `os` workflow publishes as an update. To boot the disk image (needs `qemu-kvm-core edk2-ovmf`): + +```sh +qemu-img convert -O qcow2 mkosi.output/git-runner_.raw test.qcow2 && qemu-img resize test.qcow2 40G +cp /usr/share/edk2/ovmf/OVMF_VARS.fd vars.fd +qemu-kvm -m 8G -smp 4 -cpu host -nic user,model=virtio-net-pci -drive file=test.qcow2,if=virtio \ + -drive if=pflash,format=raw,readonly=on,file=/usr/share/edk2/ovmf/OVMF_CODE.fd -drive if=pflash,format=raw,file=vars.fd +``` diff --git a/mkosi.conf b/mkosi.conf index 20b24eb..8328de3 100644 --- a/mkosi.conf +++ b/mkosi.conf @@ -46,6 +46,8 @@ WithDocs=no Locale=C.UTF-8 # The UKI's file name in the ESP, as systemd-sysupdate names the ones it installs. UnifiedKernelImageFormat=%i_%v +# A writable root, the console on screen and serial port, no systemd-firstboot questions +# (gitea-runner-setup asks its own), and KSPP hardening (the last four). KernelCommandLine= rw console=tty0