From: Lennart Poettering Date: Sun, 22 Apr 2012 13:50:52 +0000 (+0200) Subject: shutdown: don't try to shut down DM devices in a container X-Git-Tag: v183~207 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=ff644623750b4f672a79cab6cc52e8681e55a044 shutdown: don't try to shut down DM devices in a container --- diff --git a/src/core/shutdown.c b/src/core/shutdown.c index cd478b034..9631f9288 100644 --- a/src/core/shutdown.c +++ b/src/core/shutdown.c @@ -356,8 +356,10 @@ int main(int argc, char *argv[]) { log_info("Sending SIGKILL to remaining processes..."); send_signal(SIGKILL); - if (in_container) + if (in_container) { need_swapoff = false; + need_dm_detach = false; + } /* Unmount all mountpoints, swaps, and loopback devices */ for (retries = 0; retries < FINALIZE_ATTEMPTS; retries++) {