diff options
Diffstat (limited to 'debian/local/btrfs.local-premount')
-rw-r--r-- | debian/local/btrfs.local-premount | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/local/btrfs.local-premount b/debian/local/btrfs.local-premount new file mode 100644 index 00000000..7f7bf27c --- /dev/null +++ b/debian/local/btrfs.local-premount @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +PREREQ="" + +prereqs() +{ + echo "${PREREQ}" +} + +case "${1}" in + prereqs) + prereqs + exit 0 + ;; +esac + +if [ -x /bin/btrfs ] +then + modprobe btrfs + /bin/btrfs device scan 2> /dev/null +fi |