summaryrefslogtreecommitdiff
path: root/61-bcache.rules
diff options
context:
space:
mode:
Diffstat (limited to '61-bcache.rules')
-rw-r--r--61-bcache.rules7
1 files changed, 6 insertions, 1 deletions
diff --git a/61-bcache.rules b/61-bcache.rules
index acedefe..7857914 100644
--- a/61-bcache.rules
+++ b/61-bcache.rules
@@ -1,3 +1,8 @@
-KERNEL=="sd*", ENV{DEVTYPE}=="disk", IMPORT{program}="/sbin/probe-bcache -o udev $tempnode"
+# register bcache devices as they come up
+# man 7 udev for syntax
+SUBSYSTEM=="block", IMPORT{program}="/sbin/probe-bcache -o udev $tempnode"
ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
+SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="bcache", \
+ RUN+="bcache-register $tempnode"
+