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.
This commit is contained in:
Daan De Meyer 2020-12-07 23:00:37 +00:00 committed by Zbigniew Jędrzejewski-Szmek
parent fc5dcf9697
commit ee2812da8f
5 changed files with 15 additions and 0 deletions

View File

@ -56,3 +56,6 @@ BuildPackages=
Packages=
libidn2
qrencode
[Host]
QemuHeadless=yes

View File

@ -65,3 +65,6 @@ Packages=
libqrencode4
locales
libidn2-0
[Host]
QemuHeadless=yes

View File

@ -80,3 +80,6 @@ Packages=
BuildDirectory=mkosi.builddir
Cache=mkosi.cache
[Host]
QemuHeadless=yes

View File

@ -76,3 +76,6 @@ Packages=
libseccomp2
pam
util-linux
[Host]
QemuHeadless=yes

View File

@ -69,3 +69,6 @@ Packages=
libqrencode4
locales
libidn2-0
[Host]
QemuHeadless=yes