26 lines
985 B
Diff
26 lines
985 B
Diff
|
From 051de5aadcd8cf1638fb86b89916f7184b30991a Mon Sep 17 00:00:00 2001
|
||
|
From: Harald Hoyer <harald@redhat.com>
|
||
|
Date: Wed, 31 Jul 2013 17:17:37 +0200
|
||
|
Subject: [PATCH] lvm: add "--yes" to lvm lvchange
|
||
|
|
||
|
---
|
||
|
modules.d/90lvm/lvm_scan.sh | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh
|
||
|
index cc006c8..85ecd4d 100755
|
||
|
--- a/modules.d/90lvm/lvm_scan.sh
|
||
|
+++ b/modules.d/90lvm/lvm_scan.sh
|
||
|
@@ -108,9 +108,9 @@ if [ -n "$LVS" ] ; then
|
||
|
info "Scanning devices $lvmdevs for LVM logical volumes $LVS"
|
||
|
lvm lvscan --ignorelockingfailure 2>&1 | vinfo
|
||
|
if [ -z "$sysinit" ]; then
|
||
|
- lvm lvchange -ay --ignorelockingfailure $nopoll --ignoremonitoring $LVS 2>&1 | vinfo
|
||
|
+ lvm lvchange --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LVS 2>&1 | vinfo
|
||
|
else
|
||
|
- lvm lvchange -ay $sysinit $LVS 2>&1 | vinfo
|
||
|
+ lvm lvchange --yes -ay $sysinit $LVS 2>&1 | vinfo
|
||
|
fi
|
||
|
fi
|
||
|
|