]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: use our own ptyfwd code for the console of a VM
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Feb 2024 11:20:55 +0000 (12:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 26 Feb 2024 10:54:37 +0000 (11:54 +0100)
commit795ec90cda93f26e42a3cb73fceca84a61e585e0
tree8c8f9bf0c68e85a5a63c2d4fc80372831927083f
parent2f7f08005b0345f8e8ff1025ad8b8d5a43ef964c
vmspawn: use our own ptyfwd code for the console of a VM

Let's make systemd-nspawn use our own ptyfwd logic to handle the TTY by
default.

This adds a new setting --console=, inspired by nspawn's setting of the
same name. If --console=interactive= is used, then we'll do the TTY
dance on our own via ptyfwd, and thus get tinting, our usual hotkey
handling and similar.

Since qemu's own console is useful too, let's keep it around via
--console=native.

FInally, replace the --qemu-gui switch by --console=gui.
man/systemd-vmspawn.xml
src/basic/glyph-util.c
src/basic/glyph-util.h
src/test/test-locale-util.c
src/vmspawn/vmspawn-settings.c
src/vmspawn/vmspawn-settings.h
src/vmspawn/vmspawn.c