Revert "sysupgrade: print errno on failure"
[project/procd.git] / container.h
index 903e3e809627170b852c1f9fe541df3087005018..dede69632dfc7435d0c6430059499e01db3e96f4 100644 (file)
@@ -21,7 +21,8 @@
 static inline bool is_container() {
        struct stat s;
        int r = stat("/.dockerenv", &s);
-       return !!getenv("container") || r == 0;
+       int pv_r = stat("/pantavisor", &s);
+       return !!getenv("container") || r == 0 || pv_r == 0;
 }
 
 #endif