summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-13 14:42:25 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-13 14:42:25 +0200
commit910212e738e5ecdc0ceebfcc5009d688415eaefc (patch)
tree6625d48c3fedd99125179b9cd5f94f49fb1c922b
parentbd3fa1d2434aa28564251ac4da34d01537de8c4b (diff)
container: when shutting down in a container don't detach loop devices
We don't do device handling in containers, hence no loop devices either.
-rw-r--r--src/core/shutdown.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/shutdown.c b/src/core/shutdown.c
index 363046e1a4..1290d807f0 100644
--- a/src/core/shutdown.c
+++ b/src/core/shutdown.c
@@ -184,6 +184,7 @@ int main(int argc, char *argv[]) {
if (in_container) {
need_swapoff = false;
need_dm_detach = false;
+ need_loop_detach = false;
}
/* Unmount all mountpoints, swaps, and loopback devices */