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 } } }