summaryrefslogtreecommitdiff
path: root/modules.d/90lvm/lvm_scan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/90lvm/lvm_scan.sh')
-rwxr-xr-xmodules.d/90lvm/lvm_scan.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh
index cc006c83..85ecd4df 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