Mirrored from: http://roy.marples.name/projects/openrc/ticket/202 This is patch for adding LXC ( http://lxc.sourceforge.net/) detection and '-lxc' keyword into some init.d scripts. Most of scripts made as-in-openvz, but there is some questions with modules (they could be, or couldn't be modprobe'd depending of what tool are you using (lxc or libvirt)) procfs (which is trying to modprobe usb) and some others.
Created attachment 208895 [details, diff] files/0.5.2/0006-add-lxc-support.patch
you realize "LXC containers" is redundant right ? :p
hush hush, it's just RAS Syndrome.
Upstream applies patch. Should it be added into tree for current release?
i dont think it's a critical issue and a new release should be out soonish ...
Created attachment 257706 [details, diff] Fixes an issue with RHEL6 OpenVZ kernel being detected as LXC Container This patch fixes an issue I have found while testing the new OpenVZ RHEL6 kernel on a machine with OpenRC 0.6.8 on it. Problem: new OpenVZ code uses cgroups now, too (as LXC does). rc detects host as LXC container as /proc/self/cgroup has content matching the regex in test (inside of librc.c system detection code). Host machine does not boot correctly as some services are not started because of false LXC detection. Solution: the patch adds some conditions to the LXC check. This is a quick fix, as it only looks out for some typical OpenVZ files inside /proc. Remaining issues: It would be a more appropriate solution, if the LXC check would be more LXC specific and not just a quick look into /proc/self/cgroup. Perhaps someone with more LXC experience has a good hint for this?
Posting patches to a closed bug does not help. Please open a new bug instead.
(In reply to comment #7) > Posting patches to a closed bug does not help. Please open a new bug instead. > Ok, I opened a new one: http://bugs.gentoo.org/show_bug.cgi?id=349389