Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440558 - sys-fs/lvm2-2.02.88: some elog messages should only be shown when upgrading from an old enough package.
Summary: sys-fs/lvm2-2.02.88: some elog messages should only be shown when upgrading f...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
Depends on:
Blocks: first-time-messages
  Show dependency tree
Reported: 2012-10-31 11:29 UTC by poletti.marco
Modified: 2014-02-04 02:48 UTC (History)
3 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description poletti.marco 2012-10-31 11:29:25 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package sys-fs/lvm2-2.02.88, the following elog messages are displayed:

 * Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with
 * their static versions. If you need the static binaries,
 * you must append .static to the filename!
 * USE flag nocman is deprecated and replaced
 * with the cman USE flag.
 * USE flags clvm and cman are masked
 * by default and need to be unmasked to be used
 * If you are using genkernel and root-on-LVM, rebuild the initramfs.
 * lvm volumes are no longer automatically created for
 * baselayout-2 users. If you are using baselayout-2, be sure to
 * run: # rc-update add lvm boot
 * Do NOT add it if you are still using baselayout-1.

Such messages should only be displayed when the package is upgraded from an old enough package (and possibly for new installs).
These situations can be checked in the ebuild as follows:

if has_version '<sys-fs/lvm2-1.0'; then

Or, if the message should also be displayed for new installs:

if !has_version 'sys-fs/lvm2' || has_version '<sys-fs/lvm2-1.0'; then

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-02-04 02:48:12 UTC
LVM2 is a pretty critical system package if your root is running on LVM, failing to heed the messages will break your system, and there is no harm to printing them.