summaryrefslogtreecommitdiff
path: root/.mkosi/mkosi.fedora
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2020-12-07 23:00:37 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-08 10:03:25 +0100
commitee2812da8fedb5d2d0205dd866fc7761202cd46d (patch)
treead7c258fc4bef07d5f78bf4cf806a19d40515e90 /.mkosi/mkosi.fedora
parentfc5dcf96978fba5e462ca9e65d4e22c7a714ff25 (diff)
downloadsystemd-ee2812da8fedb5d2d0205dd866fc7761202cd46d.tar.gz
mkosi: Enable --qemu-headless option for all distros
--qemu-headless configures the generated image and mkosi's qemu command to connect to the VM via the serial port. This allows spawning a qemu VM within the user's terminal instead of spawning a graphical GTK GUI. --qemu-headless sets TERM, COLUMNS and LINES in serial-getty@ttyS0.service in the container which makes the terminal in the VM behave almost equivalent to the one on the host. This change makes testing changes to systemd using mkosi + QEMU a lot easier compared to before as commands can be executed in the VM from the comfort of one's terminal compared to the Linux console available when running via the GTK GUI.
Diffstat (limited to '.mkosi/mkosi.fedora')
-rw-r--r--.mkosi/mkosi.fedora3
1 files changed, 3 insertions, 0 deletions
diff --git a/.mkosi/mkosi.fedora b/.mkosi/mkosi.fedora
index a3e68acdfa..f9750b994a 100644
--- a/.mkosi/mkosi.fedora
+++ b/.mkosi/mkosi.fedora
@@ -80,3 +80,6 @@ Packages=
BuildDirectory=mkosi.builddir
Cache=mkosi.cache
+
+[Host]
+QemuHeadless=yes