From d346b4bd02aa38441212f2f2f6ddb0133587aad3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 12 Jul 2004 21:25:07 +0000 Subject: wrap second LVM initialization in vgscan check to avoid extraneous messages (#127639) --- rc.d/rc.sysinit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 134cd27e..65d6599f 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -546,7 +546,9 @@ if [ -f /etc/raidtab ]; then fi # LVM2 initialization, take 2 if [ -c /dev/mapper/control -a -x /sbin/lvm.static ]; then - action $"Setting up Logical Volume Management:" /sbin/lvm.static vgscan --mknodes --ignorelockingfailure && /sbin/lvm.static vgchange -a y --ignorelockingfailure + if /sbin/lvm.static vgscan > /dev/null 2>&1 ; then + action $"Setting up Logical Volume Management:" /sbin/lvm.static vgscan --mknodes --ignorelockingfailure && /sbin/lvm.static vgchange -a y --ignorelockingfailure + fi fi # LVM initialization, take 2 (it could be on top of RAID) if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then -- cgit v1.2.1