Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225769 - sys-fs/lvm2 init-script outputs queer message with baselayout-1
Summary: sys-fs/lvm2 init-script outputs queer message with baselayout-1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-10 16:29 UTC by Anna Janackova
Modified: 2008-06-28 09:17 UTC (History)
1 user (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 Anna Janackova 2008-06-10 16:29:59 UTC
/etc/init.d/lvm start (as well as device-mapper) outputs a message completely uninformative and weird:
 
* The lvm init-script is written for baselayout-2!
* Please do not use it with baselayout-1!

Reproducible: Always



Expected Results:  
The error message should be set to something more informative, like "This init-script is meant for use with baselayout-2. Baselayout-1 starts lvm on its own, use/do this or that."
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-10 16:35:38 UTC
Which version of sys-fs/lvm2?
Comment 2 Anna Janackova 2008-06-10 17:41:25 UTC
sys-fs/lvm2-2.02.28-r2
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2008-06-10 18:23:09 UTC
    elog "lvm volumes are no longer automatically created for"
    elog "baselayout-2 users. If you are using baselayout-2, be sure to"
    elog "run: # rc-update add lvm boot"

So the instructions when you install it say only to do those steps if you're a baselayout-2 user. The instructions that you pasted say that the init script is only for baselayout-2 and not to use it with baselayout-1.

Where exactly is the confusion? 
Comment 4 Alasdair Kergon 2008-06-10 18:52:40 UTC
I can only assist when matters involve the upstream code base - this is a pure distro one, sorry - reassigning it back.
Comment 5 Anna Janackova 2008-06-10 19:21:49 UTC
(In reply to comment #3)
>     elog "lvm volumes are no longer automatically created for"
>     elog "baselayout-2 users. If you are using baselayout-2, be sure to"
>     elog "run: # rc-update add lvm boot"
> 
> So the instructions when you install it say only to do those steps if you're a
> baselayout-2 user. The instructions that you pasted say that the init script is
> only for baselayout-2 and not to use it with baselayout-1.
> 
> Where exactly is the confusion? 
> 

Are you saying that we do not need a signpost, because the information is already in the map? And asking where exactly is the confusion? ;)

Where exactly is the problem that causes the inconsistency in those two messages in question (or any other)? It's really nice to have the information in one place, but some could make use of the signpost, to know where to go. And even if nobody did, we could be a bit more consistent in things we do, because we just care and/or want to do the best. And perfection, as we all know, is in details.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-28 09:17:25 UTC
I added another line of warning to tell users NOT to add lvm to the runlevels if they are using baselayout1.