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.
This commit is contained in:
Lennart Poettering 2012-07-13 14:42:25 +02:00
parent bd3fa1d243
commit 910212e738

View File

@ -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 */