summaryrefslogtreecommitdiff
path: root/hooks/evms
blob: a58b2a4e65fef01c5f8d7ab1ee910bc57e05f450 (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
36
#!/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
cp /etc/evms.conf ${DESTDIR}/etc

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

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

for x in bbr bbr_seg bsd disk dos drivelink gpt lvm2 mac md multipath; do
	copy_exec /lib/evms/${EVMS_VERSION}/${x}-*.so /lib/evms/${EVMS_VERSION}
done

for x in dm_mod linear raid0 raid1 raid10 raid5 raid6; do
        manual_add_modules ${x}
done