summaryrefslogtreecommitdiffstats
path: root/0004-lvm-add-yes-to-lvm-lvchange.patch
blob: 16650077a93b2aac44595d709b18b000ed6c7a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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