Summary: | sys-apps/openrc doesn't run localmount for openvz containers | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Daniel Robbins <drobbins> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 399185 |
Description
Daniel Robbins
2012-01-27 19:27:11 UTC
Daniel, I am considering merging swap into localmount because of bug #400063. If I do that,, would we be able to still use localmount in openvz containers? William Correction: The bug I meant to refer to was bug #401003. For OpenVZ, the host takes care of setting up swap if vswap is enabled. Initscripts don't need to do anything. So the initscript should probably skip the swap step if it is running within an openvz container. Is there a handy way for a script to programatically "am I an openvz container?" from the shell part of the script? If not, would be a nice feature to have :) Yes there is, the rc_sys variable. So I believe we can use that. I'm also thinking that we should not run the swap step for *any* container type, but I'll look at that more closely as part of the merge. Probably a good assumption. This is done in commit 1c7d316. |