]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Enable --qemu-headless option for all distros
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 7 Dec 2020 23:00:37 +0000 (23:00 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Dec 2020 09:03:25 +0000 (10:03 +0100)
--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.

.mkosi/mkosi.arch
.mkosi/mkosi.debian
.mkosi/mkosi.fedora
.mkosi/mkosi.opensuse
.mkosi/mkosi.ubuntu

index c50ee4923c2b466137394504c8f03cf75c2abc29..b99cf8bc9bc145c58fb34120b392d679e7d46f70 100644 (file)
@@ -56,3 +56,6 @@ BuildPackages=
 Packages=
         libidn2
         qrencode
+
+[Host]
+QemuHeadless=yes
index ba9077eaa2414d31a8d8b3436c70099f1e8a1f5d..da6a30a7112c678b7cc8a098f816fe5eec2760f5 100644 (file)
@@ -65,3 +65,6 @@ Packages=
         libqrencode4
         locales
         libidn2-0
+
+[Host]
+QemuHeadless=yes
index a3e68acdfa35a20b1f3ded3588b75dfe2b5da9eb..f9750b994a4cb1128b6a084c68e38d698a093a99 100644 (file)
@@ -80,3 +80,6 @@ Packages=
 
 BuildDirectory=mkosi.builddir
 Cache=mkosi.cache
+
+[Host]
+QemuHeadless=yes
index 9f3abbc74b2df72b6194db905261d987862176c2..96dbedead465bc6848e15a83de1d4c91e9a649dc 100644 (file)
@@ -76,3 +76,6 @@ Packages=
         libseccomp2
         pam
         util-linux
+
+[Host]
+QemuHeadless=yes
index ff81536956153f7ee0a733a6d87e4717c47fafe2..08d0c49d90d010ce22a3ce17c0ecdaaac2ce882c 100644 (file)
@@ -69,3 +69,6 @@ Packages=
         libqrencode4
         locales
         libidn2-0
+
+[Host]
+QemuHeadless=yes