patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH] host/rootfs: delay Weston until udevadm settle
@ 2026-06-25 10:38 Alyssa Ross
  2026-07-06 13:21 ` Alyssa Ross
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

* Re: [PATCH] host/rootfs: delay Weston until udevadm settle
  2026-06-25 10:38 [PATCH] host/rootfs: delay Weston until udevadm settle Alyssa Ross
@ 2026-07-06 13:21 ` Alyssa Ross
  0 siblings, 0 replies; 2+ messages in thread
From: Alyssa Ross @ 2026-07-06 13:21 UTC (permalink / raw)
  To: Alyssa Ross, devel; +Cc: Demi Marie Obenour, Yureka Lilian

This patch has been committed as 526938fe9a8c2c9ef52f5243e5138e235d733383,
which can be viewed online at
https://spectrum-os.org/git/spectrum/commit/?id=526938fe9a8c2c9ef52f5243e5138e235d733383.

This is an automated message.  Send comments/questions/requests to:
Alyssa Ross <hi@alyssa.is>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-06 13:21 UTC | newest]

Thread overview: 2+ messages (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
2026-07-06 13:21 ` 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).