]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shutdown: unregister all binfmt_misc entries before entering shutdown loop
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2020 14:25:53 +0000 (16:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2020 15:14:38 +0000 (17:14 +0200)
Apparently if the new "F" flag is used they might pin files, which
blocks us from unmounting things. Let's hence clear this up explicitly.
Before entering our umount loop.

Fixes: #14981
src/shutdown/shutdown.c

index f2ad23d05570e82e9e96b3bc2fea158184a960bb..be8ae75e04ab72488d7703cf68a05cdd8bdd679a 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "alloc-util.h"
 #include "async.h"
+#include "binfmt-util.h"
 #include "cgroup-setup.h"
 #include "cgroup-util.h"
 #include "def.h"
@@ -386,6 +387,7 @@ int main(int argc, char *argv[]) {
                 sync_with_progress();
 
         disable_coredumps();
+        disable_binfmt();
 
         log_info("Sending SIGTERM to remaining processes...");
         broadcast_signal(SIGTERM, true, true, arg_timeout);