lvm: add "--yes" to lvm lvchange

master
Harald Hoyer 2013-07-31 17:17:37 +02:00
parent d2765b5175
commit 051de5aadc
1 changed files with 2 additions and 2 deletions

View File

@ -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