summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hooks/btrfs7
-rw-r--r--install/btrfs16
2 files changed, 23 insertions, 0 deletions
diff --git a/hooks/btrfs b/hooks/btrfs
new file mode 100644
index 0000000..c4836c5
--- /dev/null
+++ b/hooks/btrfs
@@ -0,0 +1,7 @@
+# vim: set ft=sh:
+
+run_hook ()
+{
+ /sbin/modprobe btrfs
+ /sbin/btrfs device scan
+}
diff --git a/install/btrfs b/install/btrfs
new file mode 100644
index 0000000..60dc2ac
--- /dev/null
+++ b/install/btrfs
@@ -0,0 +1,16 @@
+# vim:set ft=sh:
+
+install()
+{
+ MODULES="$(all_modules btrfs)"
+ BINARIES="/sbin/btrfs"
+ SCRIPT="btrfs"
+}
+
+help ()
+{
+cat <<HELPEOF
+ This hook is needed to support Btrfs volumes spread
+ over multiple devices.
+HELPEOF
+}