From: Zbigniew Jędrzejewski-Szmek Date: Fri, 23 Jan 2026 13:18:14 +0000 (+0100) Subject: units/getty@.service: use [Install]Alias= instead of static alias X-Git-Tag: v260-rc1~323 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=072e72424b2e6da1c96489ef6996f49fabd46474;p=thirdparty%2Fsystemd.git units/getty@.service: use [Install]Alias= instead of static alias In Fedora, kmsconvt@.service is starting to be used instead of getty@.service to have nicer font handling. This means that we need the autovt@.service alias point to the new unit. So far the alias was done through a static symlink because there was little reason to change it. Let's use [Install] instead so the decision which implementation to use can be made after installation. https://bugzilla.redhat.com/show_bug.cgi?id=2429626 https://fedoraproject.org/wiki/Changes/UseKmsconVTConsole --- diff --git a/units/getty@.service.in b/units/getty@.service.in index 19b95ce56d4..e7e2aab045f 100644 --- a/units/getty@.service.in +++ b/units/getty@.service.in @@ -47,6 +47,7 @@ KillMode=process {% endif %} IgnoreSIGPIPE=no SendSIGHUP=yes + ImportCredential=tty.virtual.%I.agetty.*:agetty. ImportCredential=tty.virtual.%I.login.*:login. ImportCredential=agetty.* @@ -58,5 +59,7 @@ ImportCredential=shell.* UnsetEnvironment=LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION [Install] +Alias=autovt@.service + WantedBy=getty.target DefaultInstance=tty1 diff --git a/units/meson.build b/units/meson.build index f2c5d220554..36dcb3f1174 100644 --- a/units/meson.build +++ b/units/meson.build @@ -45,7 +45,6 @@ units = [ }, { 'file' : 'getty@.service.in', - 'symlinks' : ['autovt@.service'], }, { 'file' : 'graphical.target',