summaryrefslogtreecommitdiff
path: root/hooks/legacylvm
blob: ffdf038b9ab26cf1c770e7727ee33be073a7a29a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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