]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: make sure proc-sys-binfmt_misc.automount is actually stopped
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 30 Sep 2022 14:05:54 +0000 (16:05 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 May 2023 10:39:34 +0000 (12:39 +0200)
As with other units, stopping of the automount requires actual work,
and without the ordering dependency systemd might not execute the stop
job before shutdown.target is reached and units ordered after that are
executed.

units/proc-sys-fs-binfmt_misc.automount

index 41396f929914a8458f55cba58b3b37e841f3c98f..5d212015a5a85578577605e276ad89473e56b722 100644 (file)
@@ -18,6 +18,7 @@ ConditionPathIsReadWrite=/proc/sys/
 DefaultDependencies=no
 Before=sysinit.target
 Conflicts=shutdown.target
+Before=shutdown.target
 
 [Automount]
 Where=/proc/sys/fs/binfmt_misc