public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kmscon] f43: don't wait for display before opening the pty
@ 2026-11-05 14:44 Jocelyn Falempe
  0 siblings, 0 replies; only message in thread
From: Jocelyn Falempe @ 2026-11-05 14:44 UTC (permalink / raw)
  To: git-commits

            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
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-05 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 14:44 [rpms/kmscon] f43: don't wait for display before opening the pty Jocelyn Falempe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox