From 30e20050c68f89e9a2ca14d0e5859531546735fc Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 21 Oct 2022 12:53:32 +0000 Subject: [PATCH] stages/logind-systemd: add `ReserveVT` option Add option to reserve a VT exclusively for autovt@.service activation. See logind.conf(5) for more details. --- stages/org.osbuild.systemd-logind | 6 ++++++ test/data/stages/systemd-logind/b.json | 3 ++- test/data/stages/systemd-logind/b.mpp.json | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/stages/org.osbuild.systemd-logind b/stages/org.osbuild.systemd-logind index 625f8012..aaf29e25 100755 --- a/stages/org.osbuild.systemd-logind +++ b/stages/org.osbuild.systemd-logind @@ -10,6 +10,7 @@ Drop-in configuration files can currently specify the following subset of options: - 'Login' section - 'NAutoVTs' option + - 'ReserveVT' option At least one option must be specified in the 'Login' section. """ @@ -46,6 +47,11 @@ SCHEMA = r""" "type": "integer", "minimum": 0, "description": "Configures how many virtual terminals (VTs) to allocate by default." + }, + "ReserveVT": { + "type": "integer", + "minimum": 0, + "description": "Reserve a VT exclusively for autovt@.service activation (defaults to 6)." } } } diff --git a/test/data/stages/systemd-logind/b.json b/test/data/stages/systemd-logind/b.json index e7ef3d1e..23a38a83 100644 --- a/test/data/stages/systemd-logind/b.json +++ b/test/data/stages/systemd-logind/b.json @@ -460,7 +460,8 @@ "filename": "10-ec2-getty-fix.conf", "config": { "Login": { - "NAutoVTs": 0 + "NAutoVTs": 0, + "ReserveVT": 2 } } } diff --git a/test/data/stages/systemd-logind/b.mpp.json b/test/data/stages/systemd-logind/b.mpp.json index 8bf5bb23..de70b8f4 100644 --- a/test/data/stages/systemd-logind/b.mpp.json +++ b/test/data/stages/systemd-logind/b.mpp.json @@ -35,7 +35,8 @@ "filename": "10-ec2-getty-fix.conf", "config": { "Login": { - "NAutoVTs": 0 + "NAutoVTs": 0, + "ReserveVT": 2 } } }