summaryrefslogtreecommitdiff
path: root/scripts/local-top/lvm
blob: 40c4e9b73bee4acd36bdca82e822cc381f9546e2 (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
#!/bin/sh

PREREQ="md"

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

vg=${ROOT#/dev/mapper/}

case ${vg} in
	/dev/root)
		unset vg
		;;
	/*)
		exit 0
		;;
esac
	
modprobe -Qb dm-mod

vgchange -ay