From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id D2CEF1F72E; Fri, 26 Sep 2025 14:56:59 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 3562D1F6EA; Fri, 26 Sep 2025 14:56:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.149]) by atuin.qyliss.net (Postfix) with ESMTPS id 916671F6E9 for ; Fri, 26 Sep 2025 14:56:55 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 301FFEC01B0; Fri, 26 Sep 2025 10:56:54 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Fri, 26 Sep 2025 10:56:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1758898614; x=1758985014; bh=9maRO83vPm P5YFbxKUg92GxDMcVzHwqhKEfCJRvNAw0=; b=koD55ToQqRfR81wwTdGcYeRzbe eQtPInNpsLHN3fAggnzWtNSl44u5kzwJZCLRCrtl/WgPdzNpVfu74EZ5OVqin90C YzNgIuGvZ/v3yiGJEIyHPi3K8DeOlYy7xWc6biaUQ4BHgz42YMt608uqUlDloSOw LtnQYFcKJuvxD4VJLhIWvjLr2GpFTeIVavdke6tmaahrewku3Z5eQG0tFVyvsNL7 ClgKblPANMbKxVDUGjmJaW0EdqoJiHJkIwV1AXuPu/qgHLjhnaBWhbeRcelPPyfp 0BNLy4aPWRMj1kndOebVw0drz/dlV9ztn38+AGpuayry98vn/HrOZvRIQyog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1758898614; x=1758985014; bh=9maRO83vPmP5YFbxKUg92GxDMcVzHwqhKEf CJRvNAw0=; b=KX7Nh7834MTVI7D8yk3Mbr+HLex6TKWY5EjpHDNHPd7vSb3cuAh Tiasduu3uJb2fZdRGHy6uYB1rMIflNPskRdCyHhXY0kynLeM3KgJRVPrLjTWdWVs /lVu2p780Ejf1uA4doiJaG/7u0eACEHNyv579E66z+BlqAELdZ/bABT8hlDxk1Ad +RnQhkMCzKRqtG1JtPEGhRcBLQoXYB3hTQGMx1nJSqQjHeYis9OaRGImR/qE26tX rBAMSnet82ptg+1BNI2DcWi2GAmad17YwDeheU6v0SYPeiTQcFy5IC+AXgCloaNF c6X2hG4Gi63nN+6WnKohbDU/x0bOlal+ZuQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdeileeiiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufgjfhffkfggtgesghdtreertddttdenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepieduffeuie elgfetgfdttddtkeekheekgfehkedufeevteegfeeiffetvdetueevnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Sep 2025 10:56:53 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 9C1C424D749D; Fri, 26 Sep 2025 16:56:52 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH v2 2/3] host/rootfs: Switch to systemd-udevd In-Reply-To: <5e6bd5d5-a6b3-43f4-8cfd-dc68b432d2ea@gmail.com> References: <20250924-udev-v2-0-6089de521b3b@gmail.com> <20250924-udev-v2-2-6089de521b3b@gmail.com> <87zfaiby79.fsf@alyssa.is> <5e6bd5d5-a6b3-43f4-8cfd-dc68b432d2ea@gmail.com> Date: Fri, 26 Sep 2025 16:56:51 +0200 Message-ID: <871pntcle4.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: B4PBOBOQ4WNU5ILMC2GHYNZIH23J35NL X-Message-ID-Hash: B4PBOBOQ4WNU5ILMC2GHYNZIH23J35NL X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Spectrum OS Development X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > On 9/25/25 06:53, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> diff --git a/host/rootfs/image/etc/s6-rc/kvm/up b/host/rootfs/image/etc= /s6-rc/kvm/up >>> index c02e3f90245e005b98b4de8245a1863fb49c1158..a8436de58580f2a2a6f42bb= 69418a319f967df47 100644 >>> --- a/host/rootfs/image/etc/s6-rc/kvm/up >>> +++ b/host/rootfs/image/etc/s6-rc/kvm/up >>> @@ -1,4 +1,3 @@ >>> # SPDX-License-Identifier: EUPL-1.2+ >>> -# SPDX-FileCopyrightText: 2023 Alyssa Ross >>> - >>> -/etc/mdev/wait kvm >>> +# SPDX-FileCopyrightText: 2025 Demi Marie Obenour >>> +udevadm wait /dev/kvm >>=20 >> Any reason now not to just inline this into the services that need to wa= it? > > Avoiding redundant calls I guess? I'm not > sure how expensive 'udevadm wait' is. Then let's drop the service and see if it becomes a problem. I suspect it won't. >>> diff --git a/host/rootfs/image/etc/s6-rc/systemd-udevd/run b/host/rootf= s/image/etc/s6-rc/systemd-udevd/run >>> new file mode 100644 >>> index 0000000000000000000000000000000000000000..2501680b69eb0060b651146= dffb6b3a99640c6fb >>> --- /dev/null >>> +++ b/host/rootfs/image/etc/s6-rc/systemd-udevd/run >>> @@ -0,0 +1,11 @@ >>> +#!/bin/execlineb -P >>> +# SPDX-License-Identifier: EUPL-1.2+ >>> +# SPDX-FileCopyrightText: 2025 Demi Marie Obenour >>> +if { rm -f /run/sd-notify-wrapper/systemd-udevd } >>> +background { >>> + s6-ipcserver-socketbinder -b0 -m -a 0600 /run/sd-notify-wrapper/sys= temd-udevd >>> + fdmove 1 3 >>> + sd-notify-adapter >>> +} >>> +export NOTIFY_SOCKET /run/sd-notify-wrapper/systemd-udevd >>> +exec -a systemd-udevd udevadm >>=20 >> How does systemd expect this to normally work? > > /usr/lib/systemd/systemd-udevd is a symlink to ../../bin/udevadm Ah, and you had the problem that currently it's hard to install things other than kernel modules to /usr/lib. We can probably fix that. >>> diff --git a/host/rootfs/image/etc/s6-rc/vm-env/contents b/host/rootfs/= image/etc/s6-rc/vm-env/contents >>> index 580795b1b02bb7a8dff7f872723c678141d4bb70..ed8b5c410adfc17f5bbc339= 32ac79d97bd7b3115 100644 >>> --- a/host/rootfs/image/etc/s6-rc/vm-env/contents >>> +++ b/host/rootfs/image/etc/s6-rc/vm-env/contents >>> @@ -2,4 +2,5 @@ >>> # SPDX-FileCopyrightText: 2021 Alyssa Ross >>> # >>> static-nodes >>> +systemd-udevd-coldplug >>> weston >>=20 >> Shouldn't static-nodes be removed here as well, and the static-nodes >> files deleted? > > Nope. systemd-udevd doesn't create them. However, > one can use kmod and systemd-tmpfiles to do that. > > systemd-tmpfiles actually has no dependency on PID 1 > *at all*, so we can use it as much as we want. Oh, I see, okay. That's a separate series then. :) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaNaptAAKCRBbRZGEIw/w osE/AQDmgkoheueJSQQniSOUU+90yhv+XLc49hpNHKnW1u9bCgEAuJX6VyM0DmCq 3hidfDae5rusLvCVoJVPsM1fOPA0xg0= =HMLV -----END PGP SIGNATURE----- --=-=-=--