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 08DF3136E9; Thu, 02 Oct 2025 09:53:16 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 0ABB61370A; Thu, 02 Oct 2025 09:53:14 +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-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) by atuin.qyliss.net (Postfix) with ESMTPS id B385013706 for ; Thu, 02 Oct 2025 09:53:12 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id EE2AFEC02A8; Thu, 2 Oct 2025 05:53:11 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 02 Oct 2025 05:53:11 -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=1759398791; x=1759485191; bh=EkAjAWVlPy WYqxVE61hei4/U9DsRx9KAkbMiQOBxb9Y=; b=Qhywq+dfT2dgMbb5WBgsJ8BbbJ 8AGvhhl2yGlLnKHXBvMpio6QAbHYGnLh3YOm1XPTuTgl287ADq4GZpd7q99JsgeP UxVNqhxqlV9s3/anw/srp/cQ0NHqrENaoCQuY15XnrB2ey//vLkqA2sJTfynpD1M B/leVopoLRL6IigyGHxTDl57pYKujrxItyI/8WikrG/GOs6sN2CH+OiVJ05OxqwF f4SUw9Bi81nPjmSEEShzF0L0oehSv0ASvWWtk4AsWhAYiv3W72rZ8cyIynGLdde6 V3lueNDHVEO0702IvetwCDQvIqywi8QZ+weIzwlcxMsYD7j5bvvXKPUnOHJQ== 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= 1759398791; x=1759485191; bh=EkAjAWVlPyWYqxVE61hei4/U9DsRx9KAkbM iQOBxb9Y=; b=UpYj9NNor5+cjJwCqP3NxpFwz3nxhjT+C5Tc27Wa7EGItpG6Uz/ 6E7r2282y4xA88dQitNuJnaK2RMr7Ig8OWqGOunUjuFdMlCkSxg9TzR666vxXCv+ hH8Xtw0XDKyqQx+6ajyNM3stAe+DdnuleR/SbW4cTY9w6neGIN9Te7hXLRCHP4IQ cO4r6cqjsho9KX2PcACCGSM60ODMj4oPDm56kUK3YASJkgkLAeftm2jRsiubySM6 QbLU0dV5p2anXOJ2DKt2Yzxutmx/hKQg0Odo8kVGysJ72HWL2PcRd5mOP2fYfU1l yfQbUiJ2PxnVQcz1cXTC0i+p6QXO17A4e3Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdekheejudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufgjfhffkfggtgesghdtreertddtjeenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepteehvedugf ejgfehhfeijeduleekleejgedvkeeuuefhhfegvdevfeetveegteeinecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Oct 2025 05:53:11 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id B1E475F7352E; Thu, 02 Oct 2025 11:53:09 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH v3 2/2] host/rootfs: Switch to systemd-udevd In-Reply-To: References: <20250928-udev-v3-0-bb0e9612c415@gmail.com> <20250928-udev-v3-2-bb0e9612c415@gmail.com> <87seg2bs9t.fsf@alyssa.is> Date: Thu, 02 Oct 2025 11:53:09 +0200 Message-ID: <87ldltwry2.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: CK2UYCK77AE6FSMR5KNOLYVZJYJE5PXV X-Message-ID-Hash: CK2UYCK77AE6FSMR5KNOLYVZJYJE5PXV 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; charset=utf-8 Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > On 10/1/25 10:39, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> This replaces the mdevd uevent daemon with systemd-udevd, which supports >>> much more hardware and is therefore to be preferred for a full desktop >>> environment. Various Wayland compositors integrate with systemd-udevd, >>> allowing them to discover devices as they appear rather than having to >>> only use devices plugged in when the compositor is started. >>> Additionally, systemd-udevd has quirks for various devices that are >>> needed to support the wide variety of hardware end-users have. >>=20 >> Just want to note that this implementation currently doesn't, because it >> doesn't install the hardware database. (I noticed this while debugging >> the modprobe thing.) > > Nice catch. Thank you! > >> I was able to get it to work with the following diff. I don't think it >> needs to be in this commit, so I'll just add this separately once we >> have the basic udev implementation in, but I'm posting it here now so we >> don't end up duplicating work. :) >>=20 >> diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix >> index 8abe108..b8e72f2 100644 >> --- a/host/rootfs/default.nix >> +++ b/host/rootfs/default.nix >> @@ -84,6 +84,15 @@ let >> usrPackages =3D [ >> appvm kernel.modules firmware kmod kmod.lib >> netvm mesa dejavu_fonts westonLite >> + >> + (runCommand "hwdb.bin" { >> + nativeBuildInputs =3D [ systemd ]; >> + } '' >> + mkdir -p $out/lib/systemd/hwdb etc/udev >> + cp -R ${systemd}/lib/udev/hwdb.d etc/udev >> + systemd-hwdb update -sr . >> + mv etc/udev/hwdb.bin $out/lib/systemd/hwdb >> + '') >> ]; >>=20=20 >> appvms =3D { > > Could this just be a symlink? Oh, probably. Although I wonder if we want to move away from explicit symlinks, because that's what created the problem where it's hard for you to add stuff to /usr/lib=E2=80=A6 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaN5LhQAKCRBbRZGEIw/w ohHPAQDyES8OaSgBCFyQIbEsvbS4Oar78dHPlYYh4VVsuVx/ZQD+KyRZ8xWohdS/ cS4tRNKF4t/aAewz1CZqgeLVjHDMOQ8= =TP2m -----END PGP SIGNATURE----- --=-=-=--