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 024356310; Sun, 28 Sep 2025 23:25:21 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 8DB2161F2; Sun, 28 Sep 2025 23:25:18 +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.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by atuin.qyliss.net (Postfix) with ESMTPS id B832762FA for ; Sun, 28 Sep 2025 23:25:16 +0000 (UTC) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-71d6051afbfso39562127b3.2 for ; Sun, 28 Sep 2025 16:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759101914; x=1759706714; darn=spectrum-os.org; h=cc:to:references:in-reply-to:content-transfer-encoding:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to; bh=Jto8EbOKUR05nnNbjYtLkEsWiCd49aY6M4tKyRYVtbU=; b=Off0zZcTcVEcgN15bwYPn16bLlG9LeM4y0x7Otldh83VN2DLpExrgYY9xUeCx4paUL GYGI9iuTF/pJ8M8KEWWwSZQRIEWB2Xp6JsNmbD0XtUY9hKn6+sEd9GCCaLykSSTDN0ZR E21udI1GEF3IHmaQ1yDOOhmS6/ea5n/RgCv5o2AIZgxWgsbxp2g6+CxprSPL/U48ZSoB usnKAGr1wtic1OwWqGPbB0mx6280ljaCTbpkM9de6zYyYVDdRpalODPil59OuRzyo3oO Ottou6qlbX08sSYJSLCSD1LtX1J4L+k4pgev6K5tlTZTZW9pTwSBGzATQB2UufDSguHh opdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759101914; x=1759706714; h=cc:to:references:in-reply-to:content-transfer-encoding:mime-version :message-id:date:subject:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Jto8EbOKUR05nnNbjYtLkEsWiCd49aY6M4tKyRYVtbU=; b=WOEC2mCPr4EhUJCiY3wW2VxB72VgCBb+rIYn8FZj90Btb2yUgdXzUETRpr+nv1pSk5 noeU+7cvIiP0m1h4ZZmJScGPUbdUg7GPB1v0vL1a5+Cyfj5TuFOVMjhf/bFWB5Xn+IWq tMzQextCVXSgOW91NjK8wd5bmVIuXQ6mPVKX026pLsfEu8KHQ0EaCjw4MoP9P61hSS1u G870x8XtdYL8sagKLzBn0YJ8YXlUVhR01F/8L1YjfZkR3eBTB2g6iKwAOrtRgC6UP+4o DilDgX2adcOhUsuwh3cdFZX1Yd9wHbNx/FFQhwEzf/oFCUUsKjndKgihr9CZPNRrHaRc kxcA== X-Gm-Message-State: AOJu0YxRn4OqUMKGO6br0fU1HR2ppEtfr2kVWO/IJGETKkQwf3M8ng5j f0hmP8kmWF7LbgGjVotkz8Z+XztglDBsJcHIfSXEkrHtX6LtMi2ELzxaGsiqaw== X-Gm-Gg: ASbGnctX36UBeOiZIcYtszmHL2YvW7+2aDhRgsxIVYMejQJ0MEUhYQG0Y0yAaxdCHCD Z3gAUic2txCUxe+E4tAwQZfDCXjGjGhNNhGWJe1MVj4Qq56RAUadqk4SfdGVAgOopm3SVb5DFyl dbjAfyznvBu1k/tkrQ88QT49BLXx7JMTHqLRlhJKO+4IvUzdoOrNao7xBAtnI2AHr6gQdcOhMEy Xt/thIRzZ77YZ/2ul2lRelgrDkutaAGpVxF7SIu71mS43e5JCn8TbnxOT2zGRvxvto3p1eCX0y3 MozR0UYnOYWlnRYWP+vkhq/3NIwvYgrOx4jjpM19MjF+pBuTu4E37fugP2+Wmqh324JeOdnw5kx B7NHTkbii6Ry7qrN1n+9nAJtvwJ9v0fhfOU3R2LuZA88MF6Li8DnKbK358ebRhfNMEX79WSnBOp o5csgBrRqWP5G4WclsVAvmzYif3FfP5MKINM2KSf816Cq3C0R97OjeJA== X-Google-Smtp-Source: AGHT+IGxn+u3w325b91ckMF+bzFDoB5XQr80P2y4IW5gIK4wufCi4nGp4ySoWlJM9MN3Xgp6sP3tsw== X-Received: by 2002:a05:690c:6212:b0:76e:1d09:c528 with SMTP id 00721157ae682-76e1d46ec5dmr103958997b3.42.1759101914030; Sun, 28 Sep 2025 16:25:14 -0700 (PDT) Received: from localhost.localdomain (h96-60-249-169.cncrtn.broadband.dynamic.tds.net. [96.60.249.169]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-7741797531esm9638947b3.48.2025.09.28.16.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Sep 2025 16:25:13 -0700 (PDT) From: Demi Marie Obenour Subject: [PATCH v3 0/2] Switch from mdevd to systemd-udevd in root filesystem Date: Sun, 28 Sep 2025 18:51:46 -0400 Message-Id: <20250928-udev-v3-0-bb0e9612c415@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAK82WgC/02MwQ6CMBAFf4X0bE27LQQ8+R/GQ0u3sImAabXRE P7dgppwnJc3M7OIgTCyUzGzgIkiTWMGdShY25uxQ04uMwMBpWik5E+HiYNuvba+qr1Flq/3gJ5 eW+ZyzdxTfEzhvVWTXNd/QH0DSXLB0TjUxtYerD53g6HbsZ0GtgYS7CTQPwk48ErUjcMSpFV2L y3L8gETAsipzQAAAA== X-Change-ID: 20250911-udev-24cf4bf68fbe In-Reply-To: <20250924-udev-v2-2-6089de521b3b@gmail.com> References: <20250924-udev-v2-2-6089de521b3b@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1759099907; l=3637; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=TRJw5Sea9XwU0y79biMTv64nCI6E1DLY0YpMSkYiLpI=; b=hRA7AevADiL0/UmvTtKGjdZu1BQf9NFuQc4v3g0jIkyNZ4UGUyljcXHidT3mn8eA3uloIFaJR Az3Je1X+eYRAh8UFoXlDja0FQjJ+zYve/CJgmmcnLyK1NWoDripA/z7 X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: QFGRKYR2B4O3VSVHWFOHKPYNNGAAWMHR X-Message-ID-Hash: QFGRKYR2B4O3VSVHWFOHKPYNNGAAWMHR X-MailFrom: demiobenour@gmail.com 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: Demi Marie Obenour , Alyssa Ross 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: systemd-udevd provides support for significantly more hardware than mdevd does. Therefore, switch to it. I was not able to get the networking tests to work, as I currently don't have hardware that can run KVM. The other integration tests do pass. Signed-off-by: Demi Marie Obenour --- 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 host/rootfs/Makefile | 36 +++--- host/rootfs/default.nix | 118 +++++++------------ 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 | 3 + .../kvm => systemd-udevd/flag-essential} | 0 .../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 | 13 +++ .../image/etc/s6-rc/{mdevd => systemd-udevd}/type | 0 .../s6-rc/{mdevd => systemd-udevd}/type.license | 0 .../contents.d/systemd-udevd-coldplug} | 0 host/rootfs/image/etc/s6-rc/vm-env/type.license | 2 - .../vmm-env/contents.d/systemd-udevd-coldplug | 0 .../weston/dependencies.d/systemd-udevd-coldplug | 0 .../image/etc/udev/rules.d/99-spectrum.rules | 19 +++ host/rootfs/image/usr/bin/run-vmm | 3 + 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 | 127 +++++++++++++++++++++ 39 files changed, 233 insertions(+), 157 deletions(-) --- base-commit: 2551f9eb1a6c9245699ff5cf77f9957d1e2d14be change-id: 20250911-udev-24cf4bf68fbe -- Sincerely, Demi Marie Obenour (she/her/hers)