]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: tag MTD devices for systemd
authorIan Abbott <abbotti@mev.co.uk>
Thu, 30 May 2024 10:20:41 +0000 (11:20 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 11 Jun 2024 23:18:33 +0000 (00:18 +0100)
Allow systemd units to require/bind to MTD devices.  One use case is for
using a systemd service to attach an MTD device to an UBI controller,
which cannot be done until the MTD device has been probed.

Fixes #33096

rules.d/99-systemd.rules.in

index 8ba6f177f845d506469058b7ac07a500963d9fa5..a57de9983c9d413b549aecb12c7ac7ef2fbe0d93 100644 (file)
@@ -16,6 +16,8 @@ KERNEL=="vport*", TAG+="systemd"
 
 SUBSYSTEM=="ptp", TAG+="systemd"
 
+SUBSYSTEM=="mtd", TAG+="systemd"
+
 SUBSYSTEM=="ubi", TAG+="systemd"
 
 SUBSYSTEM=="block", TAG+="systemd"