Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480232 - sys-fs/lvm2: bloated (?)
Summary: sys-fs/lvm2: bloated (?)
Status: RESOLVED DUPLICATE of bug 479950
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: EBUILD, PATCH
Depends on:
Blocks: 479950
  Show dependency tree
 
Reported: 2013-08-08 09:06 UTC by Ulenrich
Modified: 2014-02-02 06:17 UTC (History)
2 users (show)

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


Attachments
lvm2-2.02.104-without-lvm-just-dmsetup.patch (lvm2-2.02.104-r1.ebuild.diff,4.28 KB, patch)
2013-11-19 17:54 UTC, Ulenrich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulenrich 2013-08-08 09:06:32 UTC
In a comment in the lvm2 ebuild:
>    # dmeventd requires mirrors to be internal, and snapshot available
>    # so we cannot disable them
>    myconf="${myconf} --with-mirrors=internal"
>    myconf="${myconf} --with-snapshots=internal"

The real direction is the exact opposite way, this shows man dmeventd:
> dmeventd  is  the  event  monitoring  daemon for device-mapper devices.
> Library plugins can register and carry out actions triggered when  par-
> ticular events occur.
Which means, only if you need to use the plugins:
Mirror, Raid, Snapshot or Thin
you have to also activate:
> myconf="${myconf} --enable-dmeventd"
But this is unconditionally activated as of now. Despite the Gentoo user can
deactivate USE "thin". But the possibility to deactivate
Mirror, Raid or Snapshot
is missing as of now. This in fact justifies the unconditionaly activation
of " --enable-dmeventd" as of now. But the reasoning is for this in the comment is the opposite of reality. And thus way this reasoning is pretending a fat Lvm2 is unavoidable and without alternative a must do!
Comment 1 Ulenrich 2013-08-08 09:17:19 UTC
Uuups, my english - haven't slept the night. What I mean:

If it is possible to deactivate all of
Mirror, Raid, Snapshot and Thin

then also 
--disable-dmeventd

which results in roughly the half of Lvm2 in size. And 
a lot of man pages could also be purged.
Comment 2 Ulenrich 2013-08-08 09:43:02 UTC
This bug purpose is to document bloat. I am angry about some Gentoo maintainers refusing the addition of one little system unit file and talking about bloat.
The real bloat nowadays is information. Which isn't the case when adding a little unused Systemd unit file somewhere hidden in the trees. But this fat Lvm2 spits out constantly warning messages in the logs to the ignorant user ...
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2013-08-08 12:32:22 UTC
Again, your concern is with the size of the installed portion of lvm2?
Comment 4 Ulenrich 2013-08-08 17:20:54 UTC
Again, not really:
It is about (idiot-non)information flooding
Comment 5 Steve L 2013-09-16 12:28:21 UTC
(In reply to Ulenrich from comment #4)
> Again, not really:
> It is about (idiot-non)information flooding
(comment #2)
> this fat Lvm2 spits out constantly warning messages in the logs to the ignorant user

Please give examples from your logs of spurious warning messages, and attach
the output of: sed -E '/^[[:space:]]*(#|$)/d' /etc/lvm/lvm.conf
Comment 6 Ulenrich 2013-11-19 17:54:05 UTC
Created attachment 363580 [details, diff]
lvm2-2.02.104-without-lvm-just-dmsetup.patch

Introduces USE dmsetuponly as exclusive flag.
Features dmsetup 
which is enough to cryptsetup mount /home!
Get 3MByte free and a lot of less clutter.
Booting this reduced version feels more performant. 
Just a feeling though.
Comment 7 Ulenrich 2013-11-29 13:47:37 UTC
Don't use this my ebuild patch if you have 
your / - root encrypted!
I did not test nor work on that use case! 
(reminder!)
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-02-02 06:17:58 UTC

*** This bug has been marked as a duplicate of bug 479950 ***