| Message ID | 20261121123835.69902-1-f_l_k@t-online.de |
|---|---|
| State | Under Review |
| Headers | show |
| Series | [meta-oe] kmscon: enable kmsconvt@ for systems with VTs | expand |
diff --git a/meta-oe/recipes-graphics/kmscon/kmscon_10.1.1.bb b/meta-oe/recipes-graphics/kmscon/kmscon_10.1.1.bb index d498c39d20..3aa5e6b4da 100644 --- a/meta-oe/recipes-graphics/kmscon/kmscon_10.1.1.bb +++ b/meta-oe/recipes-graphics/kmscon/kmscon_10.1.1.bb @@ -45,7 +45,9 @@ EXTRA_OEMESON = "\ -Dvideo_fbdev=enabled \ " -SYSTEMD_SERVICE:${PN} = "kmscon.service" +KMSCON_VT ?= "tty1" + +SYSTEMD_SERVICE:${PN} = "kmscon.service kmsconvt@${KMSCON_VT}.service" FILES:${PN} += "${systemd_system_unitdir}/kmsconvt@.service ${datadir}/terminfo" do_install:append() {
kmscon.service carries ConditionPathExists=!/dev/tty0 and is meant for systems without virtual terminals. For systems with VTs upstream ships kmsconvt@.service, which replaces the getty (WantedBy=getty.target, DefaultInstance=tty1, Conflicts and OnFailure getty@). Enable kmsconvt@${KMSCON_VT} next to kmscon.service, so kmscon comes up in both cases. KMSCON_VT defaults to tty1; images with a display manager on VT1 set it to another VT, as display managers only conflict with getty@tty1. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Markus Volk <f_l_k@t-online.de> --- meta-oe/recipes-graphics/kmscon/kmscon_10.1.1.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)