1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-27 14:03:43 +03:00

shutdown: don't try to shut down DM devices in a container

This commit is contained in:
Lennart Poettering 2012-04-22 15:50:52 +02:00
parent fb3d2b8fec
commit ff64462375

View File

@ -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++) {