Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 442400

Summary: sys-apps/openrc-0.11.4: swap on lvm doesn't get enabled
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: New packagesAssignee: OpenRC Team <openrc>
Status: RESOLVED INVALID    
Severity: normal CC: poncho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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>.