public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jocelyn Falempe <jfalempe@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kmscon] f43: don't wait for display before opening the pty
Date: Thu, 05 Nov 2026 14:44:48 GMT	[thread overview]
Message-ID: <179388988806.1.17822178348498110820.rpms-kmscon-89c19bf5749a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/kmscon
            Branch : f43
            Commit : 89c19bf5749a229022cf4f7d6185b64316c0220a
            Author : Jocelyn Falempe <jfalempe@redhat.com>
            Date   : 2026-10-09T15:51:41+02:00
            Stats  : +33/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/kmscon/c/89c19bf5749a229022cf4f7d6185b64316c0220a?branch=f43

            Log:
            don't wait for display before opening the pty

This will allow the initial-setup script to run, even on machines that
don't have graphics at all.

---
diff --git a/kmscon.spec b/kmscon.spec
index db97f49..4d32f8a 100644
--- a/kmscon.spec
+++ b/kmscon.spec
@@ -41,6 +41,9 @@ Patch10: freetype-filter-out-non-monospace-fonts-completely.patch
 # Upstream patch, fix a memory leak when using fallback font with freetype
 Patch11: freetype-Fix-memory-leak-when-loading-fallback-font.patch
 
+# Upstream patch, start the login command even if no displays are available
+Patch12: terminal-don-t-wait-for-display-before-opening-the-p.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

diff --git a/terminal-don-t-wait-for-display-before-opening-the-p.patch b/terminal-don-t-wait-for-display-before-opening-the-p.patch
new file mode 100644
index 0000000..57b4bd3
--- /dev/null
+++ b/terminal-don-t-wait-for-display-before-opening-the-p.patch
@@ -0,0 +1,30 @@
+From fd2c8ddfbcb3490eb7390fa7a11a72cd1ce796bc Mon Sep 17 00:00:00 2001
+From: Jocelyn Falempe <jfalempe@redhat.com>
+Date: Fri, 9 Oct 2026 00:46:43 +0200
+Subject: [PATCH] terminal: don't wait for display before opening the pty
+
+This allows to run the login program in any case.
+If there are no display, you can still login, and start a ssh server
+blindly.
+---
+ src/terminal.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/src/terminal.c b/src/terminal.c
+index 9963557..5ce88f4 100644
+--- a/src/terminal.c
++++ b/src/terminal.c
+@@ -1285,10 +1285,6 @@ void terminal_refresh_displays(struct kmscon_terminal *term)
+ 
+ void terminal_activate(struct kmscon_terminal *term)
+ {
+-	// Don't open pty yet if there are no screens.
+-	if (dlist_empty(&term->screens))
+-		return;
+-
+ 	term->awake = true;
+ 	if (term->conf->blink) {
+ 		ev_timer_enable(term->blink_timer);
+-- 
+2.55.0
+

                 reply	other threads:[~2026-11-05 14:44 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=179388988806.1.17822178348498110820.rpms-kmscon-89c19bf5749a@fedoraproject.org \
    --to=jfalempe@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