diff options
Diffstat (limited to 'src/librc')
-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; |