* [PATCH] host/rootfs: delay Weston until udevadm settle
@ 2026-06-25 10:38 Alyssa Ross
0 siblings, 0 replies; only message in thread
From: Alyssa Ross @ 2026-06-25 10:38 UTC (permalink / raw)
To: devel; +Cc: Demi Marie Obenour, Yureka Lilian
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-25 10:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-25 10:38 [PATCH] host/rootfs: delay Weston until udevadm settle Alyssa Ross
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).