Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672740 - =sys-fs/lvm2-2.02.181 wrong lvmetad detection code
Summary: =sys-fs/lvm2-2.02.181 wrong lvmetad detection code
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-08 10:38 UTC by Sergey Morozov
Modified: 2018-12-08 21:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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