summaryrefslogtreecommitdiff
path: root/hooks/evms
blob: 5affeef3867346a969a1ec1db00bf9b94f2a388d (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
27
28
29
30
31
32
33
34
35
#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
prereqs)
	prereqs
	exit 0
	;;
esac

. /usr/share/initramfs-tools/hook-functions

if [ ! -x /sbin/evms_activate ]; then
	exit 0
fi

copy_exec /sbin/evms_activate /sbin

EVMS_VERSION=$(/usr/sbin/evms_query info | grep "EVMS Version" | awk '{ print $3; }')

mkdir -p ${DESTDIR}/lib/evms/${EVMS_VERSION}

for x in disk lvm2 dos multipath; do
	copy_exec /lib/evms/${EVMS_VERSION}/${x}* /lib/evms/${EVMS_VERSION}
done

for x in dm_mod; do
        manual_add_modules ${x}
done