chiark / gitweb /
shutdown: do final unmounting only if not running inside the container
[elogind.git] / src / core / shutdown.c
index d361cbe631e45593dfc8b472186ae74d5bf8d0d6..20cf526ba2716b34fe1a2fc9bde05a396b160502 100644 (file)
@@ -207,7 +207,7 @@ int main(int argc, char *argv[]) {
 
         in_container = detect_container(NULL) > 0;
 
-        need_umount = true;
+        need_umount = !in_container;
         need_swapoff = !in_container;
         need_loop_detach = !in_container;
         need_dm_detach = !in_container;