summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-03-23 10:57:05 +0100
committerKay Sievers <kay.sievers@suse.de>2006-03-23 10:57:05 +0100
commitba743e43d4045b5c6cfecaeeab4e4293a32dc5ee (patch)
tree4782d9dd286bb028c6d4aa999f99f7f611b99ac5 /etc
parent2d82e6f0532295798adec25a52a7d70c85ba4bba (diff)
fix rule order for persistent tape links
Thanks a lot to Marco for finding this.
Diffstat (limited to 'etc')
-rw-r--r--etc/udev/60-persistent-storage.rules5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/udev/60-persistent-storage.rules b/etc/udev/60-persistent-storage.rules
index 2455866999..5f4e6b5f35 100644
--- a/etc/udev/60-persistent-storage.rules
+++ b/etc/udev/60-persistent-storage.rules
@@ -30,13 +30,12 @@ KERNEL=="st*", ENV{ID_SERIAL}=="?*", SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_S
# by-path (shortest physical path)
KERNEL=="*[!0-9]|sr*", IMPORT{program}="/sbin/path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}"
-KERNEL=="*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"
KERNEL=="st*", IMPORT{program}="/sbin/path_id %p", SYMLINK+="tape/by-path/$env{ID_PATH}"
-
KERNEL=="sr*|st*", GOTO="persistent_storage_end"
-KERNEL=="*[!0-9]", SYSFS{removable}=="1", GOTO="persistent_storage_end"
+KERNEL=="*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"
# by-label/by-uuid (filesystem properties)
+KERNEL=="*[!0-9]", SYSFS{removable}=="1", GOTO="persistent_storage_end"
IMPORT{program}="/sbin/vol_id --export $tempnode"
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"