Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442400 - sys-apps/openrc-0.11.4: swap on lvm doesn't get enabled
Summary: sys-apps/openrc-0.11.4: swap on lvm doesn't get enabled
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-09 07:49 UTC by Patrick Lauer
Modified: 2012-12-24 02:30 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 Patrick Lauer gentoo-dev 2012-11-09 07:49:45 UTC
/etc/init.d/swap:

depend()
{
        before localmount
        keyword -jail -openvz -prefix -vserver -lxc
}

That runs early enough to not allow swap on lvm, which is not nice.

Suggest "after dmcrypt lvm" so that there's a reasonable chance all devices are available ...
Comment 1 William Hubbs gentoo-dev 2012-11-09 15:50:03 UTC
Or, mdcrypt and lvm could put "before swap" in their init scripts.
Let me think about which way this should go.
Comment 2 William Hubbs gentoo-dev 2012-12-22 16:26:10 UTC
I think it is better for services that are not part of OpenRC to control
their own starting order, so I think the dmcrypt and lvm init
scripts should add "before swap" to their dependencies.

On IRC you said this is counter-intuitive. I honestly don't understand
why you feel that way, but I can be convinced, so feel free to discuss this
with me.
Comment 3 SpanKY gentoo-dev 2012-12-24 02:30:32 UTC
(In reply to comment #2)

i don't think those init scripts should be 'before swap' by default.  if you have such a setup, put it into your /etc/conf.d/<whatever>.