Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 672740

Summary: =sys-fs/lvm2-2.02.181 wrong lvmetad detection code
Product: Gentoo Linux Reporter: Sergey Morozov <blshadow>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED INVALID    
Severity: normal CC: blshadow, cardoe
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sergey Morozov 2018-12-08 10:38:38 UTC
Error in /etc/init.d/lvm.

_need_lvmetad()
{
        local lvm_path="$(_get_lvm_path)"
        [ ! -x "${lvm_path}" ] && return 1
        ${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmetad=1'
}

This code expects to see "use_lvmetad=1" in /etc/lvm.conf.

But by default there are spaces in this line: "use_lvmetad = 1". I think that init script should be modified for better lvmetad and lvmlockd detection logic.
Comment 1 Sergey Morozov 2018-12-08 10:41:05 UTC
>This code expects to see "use_lvmetad=1" in /etc/lvm.conf.

In /etc/lvm/lvm.conf of course.
Comment 2 Sergey Morozov 2018-12-08 21:51:14 UTC
Sorry that's my mistake