Revert all remaing changes to getty@.service

The previous commit fixed a lot of the test, but the '64bit cloud' and
'aarch64 cloud' tests still fail, there is no login prompt on the tty.

Also, make sure that the autovt@.service symlink is in -udev subpackage.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2026-02-04 17:41:26 +01:00
commit 96c683c3de
3 changed files with 1 additions and 56 deletions

View file

@ -1,51 +0,0 @@
From 8bd9ba6a497ae4b8594bebb0c7242a00d96ee386 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Fri, 23 Jan 2026 14:18:14 +0100
Subject: [PATCH] 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
---
units/getty@.service.in | 3 +++
units/meson.build | 1 -
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/units/getty@.service.in b/units/getty@.service.in
index 19b95ce56d45c..e7e2aab045fd9 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 f2c5d220554b5..36dcb3f117483 100644
--- a/units/meson.build
+++ b/units/meson.build
@@ -45,7 +45,6 @@ units = [
},
{
'file' : 'getty@.service.in',
- 'symlinks' : ['autovt@.service'],
},
{
'file' : 'graphical.target',

View file

@ -206,7 +206,7 @@ for file in files(buildroot):
bless-boot|
boot-system-token|
bsod|
getty|
getty|autovt@|
kernel-install|
installkernel|
vconsole|

View file

@ -158,8 +158,6 @@ Patch: 0002-machined-continue-without-resolve.hook-socket.patch
Patch: 0003-ukify-omit-.osrel-section-when-os-release-is-empty.patch
# Upstream PR: https://github.com/systemd/systemd/pull/40329
Patch: 0004-stub-Fix-NULL-pointer-deref-when-there-are-no-initrd.patch
Patch: https://github.com/systemd/systemd/pull/40440.patch
%endif
%ifarch %{ix86} x86_64 aarch64 riscv64
@ -1057,8 +1055,6 @@ touch %{buildroot}%{_localstatedir}/lib/systemd/random-seed
touch %{buildroot}%{_localstatedir}/lib/systemd/timesync/clock
touch %{buildroot}%{_localstatedir}/lib/private/systemd/journal-upload/state
ln -s getty@.service %{buildroot}%{system_unit_dir}/autovt@.service
# Install yum protection config. Old location in /etc.
mkdir -p %{buildroot}/etc/dnf/protected.d/
cat >%{buildroot}/etc/dnf/protected.d/systemd.conf <<EOF