diff options
author | William Hubbs <williamh@gentoo.org> | 2011-09-27 13:56:40 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-11-07 08:39:16 -0600 |
commit | f46626dcfc4ea06d4e4171fc8904a379f40b293f (patch) | |
tree | 6ca9a86506a042b33d5993b55d2fa33443153005 | |
parent | 5a3599df8a15b1212857335101c9d31fb19e87e2 (diff) |
add auto detection for lxc
Reported-by: Francesco Riosa <francesco+gentoo_bugzilla@pnpitalia.it>
X-Gentoo-Bug: 384151
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=384151
-rw-r--r-- | src/librc/librc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |