From f46626dcfc4ea06d4e4171fc8904a379f40b293f Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 27 Sep 2011 13:56:40 -0500 Subject: add auto detection for lxc Reported-by: Francesco Riosa X-Gentoo-Bug: 384151 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=384151 --- src/librc/librc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/librc/librc.c b/src/librc/librc.c index 98765d84..c66c944f 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -281,6 +281,8 @@ rc_sys_v1(void) else if (file_regex("/proc/self/status", "envID:[[:space:]]*[1-9]")) return RC_SYS_OPENVZ; /* old test */ + else if (file_regex("/proc/1/environ", "container=lxc")) + return RC_SYS_LXC; #endif return NULL; -- cgit v1.2.3