chiark / gitweb /
rules: move OPTIONS to separate rule
[elogind.git] / rules / rules.d / 60-persistent-storage.rules
index abb9fce30bad5d5645476f3c66804444e0c9fc9e..532b09b5eceb2c8e834d42e64fc6b6cf29708d04 100644 (file)
@@ -60,6 +60,9 @@ KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_COUNT}=="?*", IMPORT{program}="vol_id --
 # probe filesystem metadata of disks
 KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
 
+# watch for future changes
+KERNEL!="sr*", OPTIONS+="watch"
+
 # by-label/by-uuid links (filesystem metadata)
 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}"