summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-22 15:50:52 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-22 15:50:52 +0200
commitff644623750b4f672a79cab6cc52e8681e55a044 (patch)
tree30cb3afbe881f8b513a0aedbadb6574592aed104 /src
parentfb3d2b8fec7c705d8027e6967adae0c2a86acf31 (diff)
shutdown: don't try to shut down DM devices in a container
Diffstat (limited to 'src')
-rw-r--r--src/core/shutdown.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/shutdown.c b/src/core/shutdown.c
index cd478b0349..9631f92885 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++) {