aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit10
1 files changed, 7 insertions, 3 deletions
diff --git a/rc.sysinit b/rc.sysinit
index dbe8068..5368a5a 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -91,9 +91,13 @@ if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
if [ -x /sbin/lvm -a -d /sys/block ]; then
# Kernel 2.6.x, LVM2 groups
stat_busy "Activating LVM2 groups"
- /sbin/lvm vgscan --ignorelockingfailure --mknodes
- /sbin/lvm vgchange --ignorelockingfailure -a y
- stat_done
+ /sbin/lvm vgscan --ignorelockingfailure --mknodes >/dev/null
+ /sbin/lvm vgchange --ignorelockingfailure -a y >/dev/null
+ if [ $? -ne 0 ]; then
+ stat_fail
+ else
+ stat_done
+ fi
fi
fi