From: Lennart Poettering Date: Fri, 13 Jul 2012 12:42:25 +0000 (+0200) Subject: container: when shutting down in a container don't detach loop devices X-Git-Tag: v187~106 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=910212e738e5ecdc0ceebfcc5009d688415eaefc;p=elogind.git 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. --- diff --git a/src/core/shutdown.c b/src/core/shutdown.c index 363046e1a..1290d807f 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 */