chiark / gitweb /
Also create /dev/disk/by-id/wwn-0x..-part%n symlinks for partitions
[elogind.git] / rules / rules.d / 60-persistent-storage.rules
index e2a5e74..c839f3b 100644 (file)
@@ -68,5 +68,6 @@ ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk
 
 # by-id (World Wide Name)
 ENV{DEVTYPE}=="disk", ENV{ID_WWN}=="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN}"
+ENV{DEVTYPE}=="partition", ENV{ID_WWN}=="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN}-part%n"
 
 LABEL="persistent_storage_end"