X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fshutdown.c;fp=src%2Fcore%2Fshutdown.c;h=20cf526ba2716b34fe1a2fc9bde05a396b160502;hp=d361cbe631e45593dfc8b472186ae74d5bf8d0d6;hb=d89b5fed9ea5d9ec293585cb85bb27b56ea6ac9c;hpb=281a92f80c215d6e07526d33563adb6d37c531c6 diff --git a/src/core/shutdown.c b/src/core/shutdown.c index d361cbe63..20cf526ba 100644 --- a/src/core/shutdown.c +++ b/src/core/shutdown.c @@ -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;