Lines 304-313
Link Here
|
304 |
# Activate LVM |
304 |
# Activate LVM |
305 |
VGSCAN=/sbin/vgscan |
305 |
VGSCAN=/sbin/vgscan |
306 |
VGCHANGE=/sbin/vgchange |
306 |
VGCHANGE=/sbin/vgchange |
307 |
if [ -e "$VGCHANGE" -a -e "$VGSCAN" -a -s /etc/lvmtab ]; then |
307 |
if [ -e "$VGCHANGE" -a -e "$VGSCAN" ] && [ -a -s /etc/lvmtab -o /etc/lvm.d ]; then |
308 |
modprobe lvm-mod >/dev/null 2>&1 |
308 |
modprobe lvm-mod >/dev/null 2>&1 |
309 |
# for 2.4.x kernel and LVM1 binaris |
309 |
# for 2.4.x kernel and LVM1 binaris |
310 |
if [ -d /proc/lvm -a ! -c /dev/mapper/control -a ! -x /sbin/lvm ]; then |
310 |
if [ -d /proc/lvm -a ! -c /dev/mapper/control -a ! -x $VGCHANGE.lvm1 ]; then |
311 |
"$VGSCAN" >/dev/null 2>&1 |
311 |
"$VGSCAN" >/dev/null 2>&1 |
312 |
action "Setting up LVM:" "$VGCHANGE" -a y |
312 |
action "Setting up LVM:" "$VGCHANGE" -a y |
313 |
fi |
313 |
fi |