Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565154 - sys-fs/lvm2 new USE=lvmetad
Summary: sys-fs/lvm2 new USE=lvmetad
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-08 16:36 UTC by Ulf Norberg
Modified: 2016-01-02 20:23 UTC (History)
2 users (show)

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


Attachments
Add USE=lvmetad to lvm2-2.02.116-r2.ebuild (lvm2-2.02.116-r2.lvmetad.patch,3.34 KB, patch)
2015-11-08 16:36 UTC, Ulf Norberg
Details | Diff
Add description of USE=lvmetad (metadata.lvmetad.patch,714 bytes, patch)
2015-11-08 16:39 UTC, Ulf Norberg
Details | Diff
metadata.xml (metadata.lvmetad.patch,734 bytes, patch)
2015-11-08 17:38 UTC, Ulf Norberg
Details | Diff
Add USE=lvmetad to lvm2-2.02.136.ebuild (lvm2-2.02.136.ebuild.patch,3.33 KB, patch)
2015-12-24 14:39 UTC, Ulf Norberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulf Norberg 2015-11-08 16:36:44 UTC
Created attachment 416304 [details, diff]
Add USE=lvmetad to lvm2-2.02.116-r2.ebuild

IMHO lvmetad is of little use on many systems (e.g. on a desktop computer where LVM-commands typically are used very rarely) - and the LVM commands will happily do their things without it.  Currently, /etc/init.d/lvm always starts lvmetad - regardless of wheather you want or not.  This is confusing and frustrating for people that dont want to deal with it at all (see e.g. bug 554918, bug 503016, bug 525614).  I suggest USE=lvmetad that makes it optional to install lvmetad (see attached path).

Note that I use openrc.  On systems with systemd - lvmetad may be more usefull (see e.g. bug 514196).
Comment 1 Ulf Norberg 2015-11-08 16:39:57 UTC
Created attachment 416306 [details, diff]
Add description of USE=lvmetad
Comment 2 Ulf Norberg 2015-11-08 17:38:53 UTC
Created attachment 416314 [details, diff]
metadata.xml
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2015-12-24 01:05:32 UTC

*** This bug has been marked as a duplicate of bug 525614 ***
Comment 4 Ulf Norberg 2015-12-24 14:37:04 UTC
(In reply to Doug Goldstein from comment #3)
> 
> *** This bug has been marked as a duplicate of bug 525614 ***

This is not a duplicate of bug 525614 (but could perhaps be a solution) - it is a feature request in the spirit: "dont install what you dont need".  lvmetad is not a critical part of LVM, so there should be no problems to make it an optional part of sys-fs/lvm2.  Or am I wrong...?
Comment 5 Ulf Norberg 2015-12-24 14:39:06 UTC
Created attachment 420662 [details, diff]
Add USE=lvmetad to lvm2-2.02.136.ebuild
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2015-12-24 17:16:15 UTC
(In reply to Ulf Norberg from comment #4)
> (In reply to Doug Goldstein from comment #3)
> > 
> > *** This bug has been marked as a duplicate of bug 525614 ***
> 
> This is not a duplicate of bug 525614 (but could perhaps be a solution) - it
> is a feature request in the spirit: "dont install what you dont need". 
> lvmetad is not a critical part of LVM, so there should be no problems to
> make it an optional part of sys-fs/lvm2.  Or am I wrong...?

You're correct its a feature request. But the implementation is really an ugly hack and not really workable. You're putting a lot of maintenance burden on Gentoo developers are while Gentoo is all about choice its really a function of choice and what developers have the time/energy to support. By adding yet another configuration combination to the ebuild that increases that burden.

I think that something can be done that will make you happy but not what you submitted.
Comment 7 Ulf Norberg 2015-12-25 11:08:22 UTC
(In reply to Doug Goldstein from comment #6)
Hmm..., I am not sure if you are saying lvmetad as a USE-flag is a bad idea or not...  But if you point out exactly what you feel is ugly with my patch - I will fix that.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2016-01-02 20:23:59 UTC
Thanks for the report. Fixed in http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef66b97c3c1778c3c8e9f96d80057ad7a1a3e2f4