diff options
author | Jan Steffens <jan.steffens@gmail.com> | 2010-06-15 19:32:33 +0200 |
---|---|---|
committer | Jan Steffens <jan.steffens@gmail.com> | 2010-06-19 02:05:18 +0200 |
commit | 94945a63162944f4bcf61f0012853f95191f0f91 (patch) | |
tree | 641abacc06c649018e182984a767d3863ba5ca0b | |
parent | ae111aae812059091b864b38c241f5ce93b8e9c2 (diff) | |
download | mkinitcpio-94945a63162944f4bcf61f0012853f95191f0f91.tar.gz mkinitcpio-94945a63162944f4bcf61f0012853f95191f0f91.tar.xz |
Simple Btrfs hook
All it does for now is cause a Btrfs scan so we can mount multi-device
volumes.
-rw-r--r-- | hooks/btrfs | 7 | ||||
-rw-r--r-- | install/btrfs | 16 |
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 +} |