From: Kieran Colford Date: Tue, 6 Dec 2016 09:46:13 +0000 (-0500) Subject: rules: consider MMC device partitions with partition number > 9 (#4831) X-Git-Tag: v233~354 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=471b9850ee10dea07233af485e125897d2d35a00;p=thirdparty%2Fsystemd.git rules: consider MMC device partitions with partition number > 9 (#4831) Add entries for extra partitions found on MMC devices (common in Chromebooks). --- diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules index f7543b7fa87..6f60ae9024e 100644 --- a/rules/60-persistent-storage.rules +++ b/rules/60-persistent-storage.rules @@ -54,7 +54,7 @@ KERNEL=="sd*[0-9]", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394-$att # MMC 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" +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" # Memstick KERNEL=="msblk[0-9]|mspblk[0-9]", SUBSYSTEMS=="memstick", ATTRS{name}=="?*", ATTRS{serial}=="?*", \