]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Revert "lvm: Don't activate LVs with activationskip set" 76/head
authorFabian Deutsch <fabiand@fedoraproject.org>
Thu, 25 Jun 2015 09:17:59 +0000 (11:17 +0200)
committerFabian Deutsch <fabiand@fedoraproject.org>
Thu, 25 Jun 2015 10:11:15 +0000 (12:11 +0200)
This reverts commit cfa365a32d47388c8476064b23d7d4684f1e591b.

The logic in commit cfa365a was added to prevent (odl) lvms from
activating snapshots which should not be activated.
Newer lvms however do this automatically (not enabling an LV if the
the 'k' attribute set), thus we can revert the previous commit.

modules.d/90lvm/lvm_scan.sh

index ce46e14554de1b78ded65dd625a1ae93a3378ee5..749564408c0b7d36191f557450ca364df45d55a9 100755 (executable)
@@ -106,10 +106,6 @@ if [ -n "$LVS" ] ; then
     info "Scanning devices $lvmdevs for LVM logical volumes $LVS"
     lvm lvscan --ignorelockingfailure 2>&1 | vinfo
     for LV in $LVS; do
-        if [ "x$(lvm lvs --noheadings --select "lv_attr =~ k" $LV | wc -l)" = "x0" ]; then
-            info "Skipping activation of '$LV' because activationskip is set."
-            continue
-        fi
         if [ -z "$sysinit" ]; then
             lvm lvchange --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LV 2>&1 | vinfo
         else