diff options
author | Bill Nottingham <notting@redhat.com> | 2004-07-12 21:25:07 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-07-12 21:25:07 +0000 |
commit | d346b4bd02aa38441212f2f2f6ddb0133587aad3 (patch) | |
tree | d33f7a621923c27d93dca50faa2744ae70bc9124 /rc.d/rc.sysinit | |
parent | 421fde04c04631ceb3e13b309aea5509c0a858ab (diff) | |
download | initscripts-d346b4bd02aa38441212f2f2f6ddb0133587aad3.tar initscripts-d346b4bd02aa38441212f2f2f6ddb0133587aad3.tar.gz initscripts-d346b4bd02aa38441212f2f2f6ddb0133587aad3.tar.bz2 initscripts-d346b4bd02aa38441212f2f2f6ddb0133587aad3.tar.xz initscripts-d346b4bd02aa38441212f2f2f6ddb0133587aad3.zip |
wrap second LVM initialization in vgscan check to avoid extraneous messages (#127639)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 4 |
1 files changed, 3 insertions, 1 deletions
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 |