aboutsummaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2017-09-14 14:53:07 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-09-14 14:53:07 +0200
commitdbbf424c8b77c1649e822c20c0b1fee1d2cfd93d (patch)
tree3d500a84cac94c8129fa36ea2092bb203d0bb772 /rules
parentMerge pull request #6428 from boucman/device_reload (diff)
downloadsystemd-dbbf424c8b77c1649e822c20c0b1fee1d2cfd93d.tar.gz
systemd-dbbf424c8b77c1649e822c20c0b1fee1d2cfd93d.tar.bz2
systemd-dbbf424c8b77c1649e822c20c0b1fee1d2cfd93d.zip
rules: ubi mtd - add link to named partitions (#6750)
[zjs: - rebase onto recent master - drop signed-off-by]
Diffstat (limited to 'rules')
-rw-r--r--rules/60-persistent-storage.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules
index d2745f65f..72fec5c88 100644
--- a/rules/60-persistent-storage.rules
+++ b/rules/60-persistent-storage.rules
@@ -57,6 +57,9 @@ KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ATTRS{name}=="?*", ATTRS{serial}=="?*"
ENV{ID_NAME}="$attr{name}", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}"
KERNEL=="mmcblk[0-9]p[0-9]*", ENV{ID_NAME}=="?*", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}-part%n"
+# UBI-MTD
+SUBSYSTEM=="ubi", KERNEL=="ubi*_*", ATTRS{mtd_num}=="*", SYMLINK+="ubi_mtd%s{mtd_num}_%s{name}"
+
# Memstick
KERNEL=="msblk[0-9]|mspblk[0-9]", SUBSYSTEMS=="memstick", ATTRS{name}=="?*", ATTRS{serial}=="?*", \
ENV{ID_NAME}="$attr{name}", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/memstick-$env{ID_NAME}_$env{ID_SERIAL}"