Browse Source

lvm: add "--yes" to lvm lvchange

master
Harald Hoyer 12 years ago
parent
commit
051de5aadc
  1. 4
      modules.d/90lvm/lvm_scan.sh

4
modules.d/90lvm/lvm_scan.sh

@ -108,9 +108,9 @@ if [ -n "$LVS" ] ; then @@ -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


Loading…
Cancel
Save