summaryrefslogtreecommitdiff
path: root/hooks/evms
blob: 0981672aa57118358f9eaba39407e1b9a5fd435e (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
#!/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