stages/logind-systemd: add ReserveVT option

Add option to reserve a VT exclusively for autovt@.service activation.
See logind.conf(5) for more details.
This commit is contained in:
Christian Kellner 2022-10-21 12:53:32 +00:00
parent 145a0cc273
commit 30e20050c6
3 changed files with 10 additions and 2 deletions

View file

@ -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)."
}
}
}

View file

@ -460,7 +460,8 @@
"filename": "10-ec2-getty-fix.conf",
"config": {
"Login": {
"NAutoVTs": 0
"NAutoVTs": 0,
"ReserveVT": 2
}
}
}

View file

@ -35,7 +35,8 @@
"filename": "10-ec2-getty-fix.conf",
"config": {
"Login": {
"NAutoVTs": 0
"NAutoVTs": 0,
"ReserveVT": 2
}
}
}