chiark / gitweb /
rules: storage - whitelist partitioned MS & MMC devices
[elogind.git] / rules / 60-persistent-storage.rules
index df490b09d5c8119ea430be9b0f1a3d8ab1a0c2b6..341ef9c07daf6770d3ca5171d44f42f3411e50df 100644 (file)
@@ -3,8 +3,10 @@
 # persistent storage links: /dev/disk/{by-id,by-uuid,by-label,by-path}
 # scheme based on "Linux persistent device names", 2004, Hannes Reinecke <hare@suse.de>
 
+ACTION=="remove", GOTO="persistent_storage_end"
+
 SUBSYSTEM!="block", GOTO="persistent_storage_end"
-KERNEL!="loop*|mmcblk[0-9]|mspblk[0-9]|nvme*|sd*|sr*|vd*", GOTO="persistent_storage_end"
+KERNEL!="loop*|mmcblk*[0-9]|mspblk*[0-9]|nvme*|sd*|sr*|vd*", GOTO="persistent_storage_end"
 
 # ignore partitions that span the entire disk
 TEST=="whole_disk", GOTO="persistent_storage_end"