summaryrefslogtreecommitdiff
path: root/hooks/legacy-lvm
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/legacy-lvm')
-rwxr-xr-xhooks/legacy-lvm26
1 files changed, 26 insertions, 0 deletions
diff --git a/hooks/legacy-lvm b/hooks/legacy-lvm
new file mode 100755
index 0000000..ffdf038
--- /dev/null
+++ b/hooks/legacy-lvm
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# FIXME: Remove this hook after Lenny releases
+if [ -x /sbin/vgchange ] && [ -d /lib/lvm-200 ] \
+ && [ ! -f /usr/share/initramfs-tools/hooks/lvm2 ]; then
+ copy_exec /lib/lvm-200/vgchange /sbin
+ for x in dm_mod dm_snapshot dm_mirror; do
+ manual_add_modules ${x}
+ done
+fi
+exit 0