From: Harald Hoyer Date: Fri, 24 Jan 2014 15:37:13 +0000 (+0100) Subject: lvm:lvm_scan.sh handle one LV at a time with lvchange X-Git-Tag: 037~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cb42c27f9639dd7dca92a33324a6393a1c6335e;p=thirdparty%2Fdracut.git lvm:lvm_scan.sh handle one LV at a time with lvchange --- diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh index 85ecd4df1..f87831c76 100755 --- a/modules.d/90lvm/lvm_scan.sh +++ b/modules.d/90lvm/lvm_scan.sh @@ -107,11 +107,13 @@ fi 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 --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LVS 2>&1 | vinfo - else - lvm lvchange --yes -ay $sysinit $LVS 2>&1 | vinfo - fi + for LV in $LVS; do + if [ -z "$sysinit" ]; then + lvm lvchange --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LV 2>&1 | vinfo + else + lvm lvchange --yes -ay $sysinit $LV 2>&1 | vinfo + fi + done fi if [ -z "$LVS" -o -n "$VGS" ]; then