diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-11 14:01:54 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-11 14:01:54 +0200 |
commit | 1bc19dbc6b3d9bfbb8d5d63b16c672f5c37e79ff (patch) | |
tree | a8620f1119574ca17cad02b269c2f38d8f23dbb5 | |
parent | 21ac1311d806e5506e01809ff5cb68b2d6ae8a92 (diff) |
rules: run vol_id only for partitions
Until we add support to the kernel to report media changes with a
"change" event, do not read the device content, because it will not
get updated when the media is removed or replaced.
-rw-r--r-- | etc/udev/rules.d/60-persistent-storage.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/udev/rules.d/60-persistent-storage.rules b/etc/udev/rules.d/60-persistent-storage.rules index a49321c5fc..62cdad67cb 100644 --- a/etc/udev/rules.d/60-persistent-storage.rules +++ b/etc/udev/rules.d/60-persistent-storage.rules @@ -59,7 +59,7 @@ KERNEL=="sr*|st*", GOTO="persistent_storage_end" KERNEL=="hd*[!0-9]", ATTR{removable}=="1", GOTO="persistent_storage_end" # by-label/by-uuid (filesystem properties) -IMPORT{program}="vol_id --export $tempnode" +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}" ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}" |