blob: 1969cf729ded80bec9a74d032d06f8c9e4837a3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# LVM support for /usr, /home, /opt ....
# This should be done *before* checking local
# volumes, or they never get checked.
# NOTE: Add needed modules for LVM or RAID, etc
# to /etc/modules.autoload if needed
if [ -z "${CDBOOT}" -a -x /sbin/vgscan ] && \
[ -d /proc/lvm -o "$(grep device-mapper /proc/misc 2>/dev/null)" ]
then
ebegin "Setting up the Logical Volume Manager"
#still echo stderr for debugging
/sbin/vgscan >/dev/null
if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
[ -f /etc/lvmtab -o -d /etc/lvm ]
then
/sbin/vgchange -a y >/dev/null
fi
eend $? "Failed to setup the LVM"
fi
# vim:ts=4
|