public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Stephen Gallagher <sgallagh@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kmscon] rawhide: Use agetty on Fedora
Date: Fri, 05 Jun 2026 14:52:02 GMT	[thread overview]
Message-ID: <178067112222.1.11166965675673813515.rpms-kmscon-7dadb00e9792@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/kmscon
            Branch : rawhide
            Commit : 7dadb00e9792e9ea1eda725c47e06f409bba4821
            Author : Stephen Gallagher <sgallagh@redhat.com>
            Date   : 2026-06-05T09:58:33-04:00
            Stats  : +36/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/kmscon/c/7dadb00e9792e9ea1eda725c47e06f409bba4821?branch=rawhide

            Log:
            Use agetty on Fedora

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

---
diff --git a/0001-Use-agetty-on-Fedora.patch b/0001-Use-agetty-on-Fedora.patch
new file mode 100644
index 0000000..c1f9097
--- /dev/null
+++ b/0001-Use-agetty-on-Fedora.patch
@@ -0,0 +1,30 @@
+From b4cc9b41306feaa37d600732993929090a73f2e8 Mon Sep 17 00:00:00 2001
+From: Stephen Gallagher <sgallagh@redhat.com>
+Date: Fri, 5 Jun 2026 09:46:55 -0400
+Subject: [PATCH] Use agetty on Fedora
+
+The upstream kmscon support for /usr/lib/issue.d is lacking and we need
+this for Fedora Server and Fedora ELN to inform the user of the Cockpit
+console address.
+
+Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
+---
+ scripts/systemd/kmsconvt@.service.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/scripts/systemd/kmsconvt@.service.in b/scripts/systemd/kmsconvt@.service.in
+index f86e5a9bb3de9d665e01dccfbb6ff551ccdd96ab..152bac2fbcaccc4c5f9c3b452b55458aa4645334 100644
+--- a/scripts/systemd/kmsconvt@.service.in
++++ b/scripts/systemd/kmsconvt@.service.in
+@@ -39,7 +39,7 @@ ConditionPathExists=/dev/tty0
+ 
+ [Service]
+ @PAM_CFG@
+-ExecStart=kmscon --vt=%I --no-switchvt
++ExecStart=kmscon --vt=%I --no-switchvt --no-issue --login -- /usr/bin/agetty -o '-p -- \\u' --noclear -- - $$TERM
+ UtmpIdentifier=%I
+ TTYPath=/dev/%I
+ TTYReset=yes
+-- 
+2.54.0
+

diff --git a/kmscon.spec b/kmscon.spec
index 7875ca9..cee55b3 100644
--- a/kmscon.spec
+++ b/kmscon.spec
@@ -31,6 +31,12 @@ BuildRequires:  pkgconfig(zlib)
 
 Patch: localectl_support.patch
 
+# Temporary downstream patch until kmscon natively supports /usr/lib/issue.d
+# This is needed by Fedora Server and Fedora ELN to display the Cockpit
+# console URL at the login prompt.
+# See https://github.com/kmscon/kmscon/issues/407 for more details
+Patch: 0001-Use-agetty-on-Fedora.patch
+
 %description
 Kmscon is a simple terminal emulator based on linux kernel mode setting (KMS).
 It is an attempt to replace the in-kernel VT implementation with a userspace

                 reply	other threads:[~2026-06-05 14:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178067112222.1.11166965675673813515.rpms-kmscon-7dadb00e9792@fedoraproject.org \
    --to=sgallagh@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox