]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units/getty@.service: use [Install]Alias= instead of static alias
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 23 Jan 2026 13:18:14 +0000 (14:18 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 24 Jan 2026 12:19:08 +0000 (13:19 +0100)
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

units/getty@.service.in
units/meson.build

index 19b95ce56d45c431945a53cb447dd477f07ae14e..e7e2aab045fd9a757d1ae9892d46c32aa38b1eb8 100644 (file)
@@ -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
index f2c5d220554b5b56f730506288ac8c169f159a98..36dcb3f1174839e5cbc3ffd991cedc7da02e98f3 100644 (file)
@@ -45,7 +45,6 @@ units = [
         },
         {
           'file' : 'getty@.service.in',
-          'symlinks' : ['autovt@.service'],
         },
         {
           'file' : 'graphical.target',