From: Demi Marie Obenour <demiobenour@gmail.com>
To: Spectrum OS Development <devel@spectrum-os.org>
Cc: Demi Marie Obenour <demiobenour@gmail.com>, Alyssa Ross <hi@alyssa.is>
Subject: [PATCH v4 0/2] Switch from mdevd to systemd-udevd in root filesystem
Date: Fri, 03 Oct 2025 17:42:54 -0400 [thread overview]
Message-ID: <20251003-udev-v4-0-7d7344b14d11@gmail.com> (raw)
In-Reply-To: <20250928-udev-v3-0-bb0e9612c415@gmail.com>
systemd-udevd provides support for significantly more hardware than
mdevd does. Therefore, switch to it.
Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
---
Changes in v4:
- Use 'udevadm trigger --action=add' at coldplug time.
- Ensure that the wrapper does not exit after the first message.
- Include the hardware database.
- sd-notify-adapter should not exit if it receives a message without
READY=1.
- Link to v3: https://spectrum-os.org/lists/archives/spectrum-devel/20250928-udev-v3-0-bb0e9612c415@gmail.com
Changes in v3:
- Try to avoid net-add running twice.
- Use full systemd instead of systemdMinimal, as something else already
pulls it into the image.
- Hopefully fix integration tests.
- Link to v2: https://spectrum-os.org/lists/archives/spectrum-devel/20250924-udev-v2-2-6089de521b3b@gmail.com
Changes in v2:
- Use more optional arguments instead of positional parameters in
sd-notify-wrapper.
- Explain why explicit modprobe is needed.
- Link to v1: https://spectrum-os.org/lists/archives/spectrum-devel/20250913-udev-v1-0-eade4ab8f2b4@gmail.com
---
Demi Marie Obenour (2):
tools: Add adapter tool for services using sd_notify
host/rootfs: Switch to systemd-udevd
LICENSES/LGPL-2.1-or-later.txt | 502 +++++++++++++++++++++
host/rootfs/Makefile | 2 +-
host/rootfs/default.nix | 118 ++---
host/rootfs/file-list.mk | 33 +-
host/rootfs/image/etc/mdev.conf | 7 -
host/rootfs/image/etc/mdev/listen | 11 -
host/rootfs/image/etc/mdev/wait | 14 -
host/rootfs/image/etc/s6-rc/card0/type.license | 2 -
host/rootfs/image/etc/s6-rc/card0/up | 4 -
host/rootfs/image/etc/s6-rc/kvm/timeout-up | 1 -
host/rootfs/image/etc/s6-rc/kvm/timeout-up.license | 2 -
host/rootfs/image/etc/s6-rc/kvm/type | 1 -
host/rootfs/image/etc/s6-rc/kvm/type.license | 2 -
host/rootfs/image/etc/s6-rc/kvm/up | 4 -
host/rootfs/image/etc/s6-rc/mdevd-coldplug/type | 1 -
host/rootfs/image/etc/s6-rc/mdevd-coldplug/up | 4 -
.../image/etc/s6-rc/mdevd/notification-fd.license | 2 -
host/rootfs/image/etc/s6-rc/mdevd/run | 5 -
.../contents.d/systemd-udevd-coldplug} | 0
.../dependencies.d/systemd-udevd} | 0
.../s6-rc/{card0 => systemd-udevd-coldplug}/type | 0
.../type.license | 0
.../image/etc/s6-rc/systemd-udevd-coldplug/up | 6 +
.../s6-rc/{mdevd => systemd-udevd}/notification-fd | 0
.../s6-rc/systemd-udevd/notification-fd.license | 2 +
host/rootfs/image/etc/s6-rc/systemd-udevd/run | 15 +
.../image/etc/s6-rc/{mdevd => systemd-udevd}/type | 0
.../s6-rc/{mdevd => systemd-udevd}/type.license | 0
.../contents.d/systemd-udevd-coldplug} | 0
.../contents.d/systemd-udevd-coldplug} | 0
.../weston/dependencies.d/systemd-udevd-coldplug | 0
host/rootfs/image/etc/s6-rc/weston/run | 7 +-
.../image/etc/udev/rules.d/99-spectrum.rules | 15 +
host/rootfs/image/usr/bin/run-vmm | 1 +
host/rootfs/image/usr/bin/systemd-udevd | 1 +
.../{etc/mdev/net/add => usr/libexec/net-add} | 0
tools/default.nix | 1 +
tools/meson.build | 1 +
tools/sd-notify-adapter/meson.build | 4 +
tools/sd-notify-adapter/sd-notify-adapter.c | 114 +++++
40 files changed, 724 insertions(+), 158 deletions(-)
---
base-commit: c5d5786d3dc938af0b279c542d1e43bce381b4b9
change-id: 20250911-udev-24cf4bf68fbe
--
Sincerely,
Demi Marie Obenour (she/her/hers)
next prev parent reply other threads:[~2025-10-03 21:43 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-14 3:16 [PATCH 0/3] Switch from mdevd to systemd-udevd in root filesystem Demi Marie Obenour
2025-09-14 3:16 ` [PATCH 1/3] host/rootfs: Add early serial output Demi Marie Obenour
2025-09-17 11:45 ` Alyssa Ross
2025-09-18 2:44 ` Demi Marie Obenour
2025-09-19 14:21 ` Alyssa Ross
2025-09-19 14:49 ` Alyssa Ross
2025-09-14 3:16 ` [PATCH 2/3] tools: Add adapter tool for services using sd_notify Demi Marie Obenour
2025-09-14 3:16 ` [PATCH 3/3] host/rootfs: switch to systemd-udevd Demi Marie Obenour
2025-09-19 14:12 ` Alyssa Ross
2025-09-19 19:32 ` Demi Marie Obenour
2025-09-21 12:18 ` Alyssa Ross
2025-09-21 17:02 ` Demi Marie Obenour
2025-09-21 16:27 ` Demi Marie Obenour
2025-09-21 16:28 ` Demi Marie Obenour
2025-09-23 18:39 ` Alyssa Ross
2025-09-23 19:18 ` Demi Marie Obenour
2025-09-24 10:32 ` [PATCH v2 0/3] Switch from mdevd to systemd-udevd in root filesystem Demi Marie Obenour
2025-09-24 10:32 ` [PATCH v2 1/3] tools: Add adapter tool for services using sd_notify Demi Marie Obenour
2025-09-25 10:29 ` Alyssa Ross
2025-09-25 16:54 ` Demi Marie Obenour
2025-09-24 10:32 ` [PATCH v2 2/3] host/rootfs: Switch to systemd-udevd Demi Marie Obenour
2025-09-25 10:53 ` Alyssa Ross
2025-09-25 17:53 ` Demi Marie Obenour
2025-09-26 14:56 ` Alyssa Ross
2025-09-28 22:51 ` [PATCH v3 0/2] Switch from mdevd to systemd-udevd in root filesystem Demi Marie Obenour
2025-09-28 22:51 ` [PATCH v3 1/2] tools: Add adapter tool for services using sd_notify Demi Marie Obenour
2025-10-01 16:06 ` Alyssa Ross
2025-09-28 22:51 ` [PATCH v3 2/2] host/rootfs: Switch to systemd-udevd Demi Marie Obenour
2025-10-01 14:24 ` Alyssa Ross
2025-10-01 14:39 ` Alyssa Ross
2025-10-01 17:40 ` Demi Marie Obenour
2025-10-02 9:53 ` Alyssa Ross
2025-10-02 10:34 ` Alyssa Ross
2025-10-02 10:36 ` [PATCH v3 0/2] Switch from mdevd to systemd-udevd in root filesystem Alyssa Ross
2025-10-03 21:42 ` Demi Marie Obenour [this message]
2025-10-03 21:42 ` [PATCH v4 1/2] tools: Add adapter tool for services using sd_notify Demi Marie Obenour
2025-10-28 15:38 ` Alyssa Ross
2025-10-28 22:56 ` Demi Marie Obenour
2025-10-29 11:26 ` Alyssa Ross
2025-10-31 4:34 ` Demi Marie Obenour
2025-10-31 8:54 ` Alyssa Ross
2025-11-01 18:23 ` Demi Marie Obenour
2025-10-03 21:42 ` [PATCH v4 2/2] host/rootfs: Switch to systemd-udevd Demi Marie Obenour
2025-10-28 16:02 ` Alyssa Ross
2025-10-28 22:56 ` Demi Marie Obenour
2025-10-29 9:31 ` Alyssa Ross
2025-10-29 9:55 ` Demi Marie Obenour
2025-09-24 10:32 ` [PATCH v2 3/3] host/rootfs: Simplify s6-rc dependencies Demi Marie Obenour
2025-09-25 11:07 ` Alyssa Ross
2025-09-25 15:50 ` Demi Marie Obenour
2025-10-02 10:37 ` Alyssa Ross
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=20251003-udev-v4-0-7d7344b14d11@gmail.com \
--to=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
--cc=hi@alyssa.is \
/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).