]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lvm: fixed "thin" recognition
authorHarald Hoyer <harald@redhat.com>
Thu, 6 Jun 2013 07:40:04 +0000 (09:40 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 6 Jun 2013 07:40:26 +0000 (09:40 +0200)
modules.d/90lvm/module-setup.sh

index e8416ca85f8eba5b954db90aaa49242ded0c2911..a51bb0536371660c25237ba85f53e9df2c9956c6 100755 (executable)
@@ -41,7 +41,7 @@ install() {
             push _activated "${DM_VG_NAME}/${DM_LV_NAME}"
         fi
         if ! [[ $_needthin ]]; then
-            [[ $(lvs --noheadings -o segtype $1) == *thin* ]] && _needthin=1
+            [[ $(lvs --noheadings -o segtype ${DM_VG_NAME}) == *thin* ]] && _needthin=1
         fi
 
         return 0