summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-11-25 11:06:10 -0500
committerDavid Zeuthen <davidz@redhat.com>2009-11-25 11:10:47 -0500
commit28c7463999c64517ddce0b52e89161d77dfac373 (patch)
tree629564479ab71e26855d2253eceaca06e54fdcda /rules
parentde408510ec4197ba2b81cdfdac15740d2bd7151f (diff)
Create /dev/disk/by-id/wwn-0x... symlinks
Now that both ata_id and scsi_id exports the World Wide Name in the ID_WWN property, use this to create persistent symlinks. Example /dev/disk/by-id/wwn-0x500000e01b83f360 -> ../../sdn /dev/disk/by-id/wwn-0x500000e01b83f440 -> ../../sdm Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'rules')
-rw-r--r--rules/rules.d/60-persistent-storage.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/rules.d/60-persistent-storage.rules b/rules/rules.d/60-persistent-storage.rules
index f808c810ec..e2a5e74b71 100644
--- a/rules/rules.d/60-persistent-storage.rules
+++ b/rules/rules.d/60-persistent-storage.rules
@@ -66,4 +66,7 @@ KERNEL!="sr*", OPTIONS+="watch"
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
+# by-id (World Wide Name)
+ENV{DEVTYPE}=="disk", ENV{ID_WWN}=="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN}"
+
LABEL="persistent_storage_end"