diff options
-rw-r--r-- | src/librc/librc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c index 227730d1..e97425ef 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -230,9 +230,11 @@ const char *rc_sys(void) else if (file_regex("/proc/self/status", "(s_context|VxID):[[:space:]]*[1-9]")) return RC_SYS_VSERVER; + else if (exists("/proc/vz/veinfo") && !exists("/proc/vz/version")) + return RC_SYS_OPENVZ; else if (file_regex("/proc/self/status", "envID:[[:space:]]*[1-9]")) - return RC_SYS_OPENVZ; + return RC_SYS_OPENVZ; /* old test */ #endif return NULL; |