diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-03 21:05:19 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-03 21:05:19 +0200 |
commit | 1ed38f41749dde482e164e692255b60c38b5d876 (patch) | |
tree | 6aec827b8f276ffdca46fa7e34fc1a752757955f | |
parent | c7969cdbcb1f6d39177f6cc2e28597fabe186594 (diff) |
persistent device naming: cleanup storage rules
-rw-r--r-- | etc/udev/rules.d/60-persistent-storage.rules | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/udev/rules.d/60-persistent-storage.rules b/etc/udev/rules.d/60-persistent-storage.rules index 990703cef3..a1e0917ab5 100644 --- a/etc/udev/rules.d/60-persistent-storage.rules +++ b/etc/udev/rules.d/60-persistent-storage.rules @@ -14,7 +14,7 @@ KERNEL=="hd*[!0-9]", ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="p KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end" # ignore partitions that span the entire disk -ATTR{whole_disk}=="*", GOTO="persistent_storage_end" +TEST=="whole_disk", GOTO="persistent_storage_end" # /sys/class/block will export this ENV{DEVTYPE}!="?*", ATTR{range}=="?*", ENV{DEVTYPE}="disk" @@ -47,9 +47,6 @@ ENV{DEVTYPE}=="disk", IMPORT{program}="path_id %p" ENV{DEVTYPE}=="disk", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}" ENV{DEVTYPE}=="partition", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n" -KERNEL=="sr*", GOTO="persistent_storage_end" -KERNEL=="hd*[!0-9]", ATTR{removable}=="1", GOTO="persistent_storage_end" - # by-label/by-uuid (filesystem properties) ENV{DEVTYPE}=="partition", IMPORT{program}="vol_id --export $tempnode" ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" |