#include "mkdir.h"
#include "virt.h"
#include "watchdog.h"
+#include "killall.h"
#define FINALIZE_ATTEMPTS 50
if (pivot_root(".", "oldroot") < 0) {
log_error("pivot failed: %m");
- /* only chroot if pivot root succeded */
+ /* only chroot if pivot root succeeded */
return -errno;
}
if (in_container) {
need_swapoff = false;
need_dm_detach = false;
+ need_loop_detach = false;
}
/* Unmount all mountpoints, swaps, and loopback devices */