summaryrefslogtreecommitdiff
path: root/debian/local/btrfs.udev
diff options
context:
space:
mode:
Diffstat (limited to 'debian/local/btrfs.udev')
-rw-r--r--debian/local/btrfs.udev7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/local/btrfs.udev b/debian/local/btrfs.udev
new file mode 100644
index 00000000..e0905c49
--- /dev/null
+++ b/debian/local/btrfs.udev
@@ -0,0 +1,7 @@
+SUBSYSTEM!="block", GOTO="btrfs_end"
+ACTION!="add|change", GOTO="btrfs_end"
+ENV{ID_FS_TYPE}!="btrfs", GOTO="btrfs_end"
+RUN+="/sbin/modprobe btrfs"
+RUN+="/bin/btrfs device scan $env{DEVNAME}"
+
+LABEL="btrfs_end"