From: Alyssa Ross <hi@alyssa.is>
To: devel@spectrum-os.org
Cc: Demi Marie Obenour <demiobenour@gmail.com>,
Yureka Lilian <yureka@cyberchaos.dev>
Subject: [PATCH] host/rootfs: delay Weston until udevadm settle
Date: Thu, 25 Jun 2026 12:38:34 +0200 [thread overview]
Message-ID: <20260625103834.16361-1-hi@alyssa.is> (raw)
We might not get a card0; rather a card1. There's no easy way to wait
for multiple devices with udev, so instead we just wait for all boot
events to have been processed. Later, we will get COSMIC to allow
being started with no cards available. For now, this is fine.
(If somebody boots with no GPU, and then hotplugs one, we allow Weston
to restart in a loop until that happens. That should be pretty uncommon.)
Closes: https://matrix.to/#/!xSysqhzbOZImdvGpix:fairydust.space/$FXt0B6ZcIn1KO1k-sis5WrESsePTmi1hfg4ZXiVXwTM?via=fairydust.space&via=matrix.org&via=dataaturservice.se
Link: https://matrix.to/#/!xSysqhzbOZImdvGpix:fairydust.space/$Gvq6jxvt5d5qngIqs0xssBmONLH-q66g-HG_9E7TOWw?via=fairydust.space&via=matrix.org&via=dataaturservice.se
Reported-by: Yureka Lilian <yureka@cyberchaos.dev>
Closes: https://inbox.spectrum-os.org/spectrum-devel/6ba1fc13-c905-4074-a878-bb2488ef2020@gmail.com
Link: https://inbox.spectrum-os.org/spectrum-devel/20260524-weston-card-fix-v1-1-9c6dad59c245@gmail.com
Signed-off-by: Alyssa Ross <hi@alyssa.is>
Fixes: 372bacd ("etc/s6-rc: add weston service")
---
host/rootfs/image/etc/s6-rc/weston/run | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/host/rootfs/image/etc/s6-rc/weston/run b/host/rootfs/image/etc/s6-rc/weston/run
index fd59586..8b065ee 100644
--- a/host/rootfs/image/etc/s6-rc/weston/run
+++ b/host/rootfs/image/etc/s6-rc/weston/run
@@ -40,7 +40,7 @@ redirfd -r 0 /dev/tty1
importas -i home HOME
cd $home
-if { udevadm wait /dev/dri/card0 }
+if { udevadm settle }
s6-setuidgid wayland
bwrap
# no --unshare-net, breaks udev hotplug
base-commit: 1e746f2b283f0d4964131e80b6a4f1def99f7510
--
2.54.0
reply other threads:[~2026-06-25 10:38 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=20260625103834.16361-1-hi@alyssa.is \
--to=hi@alyssa.is \
--cc=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
--cc=yureka@cyberchaos.dev \
/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.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).