From dc16846c26287fd2081eb3c4a73487c9b186e2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 1 Jun 2021 08:05:03 +0200 Subject: [PATCH] units: stop automount unit when shutting down This is currently our only .automount unit. We wouldn't want to trigger it accidentally during shutdown, so let's stop it too. --- units/proc-sys-fs-binfmt_misc.automount | 1 + 1 file changed, 1 insertion(+) diff --git a/units/proc-sys-fs-binfmt_misc.automount b/units/proc-sys-fs-binfmt_misc.automount index a71e2499767..172c8757abb 100644 --- a/units/proc-sys-fs-binfmt_misc.automount +++ b/units/proc-sys-fs-binfmt_misc.automount @@ -13,6 +13,7 @@ Documentation=https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.htm Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems DefaultDependencies=no Before=sysinit.target +Conflicts=shutdown.target ConditionPathExists=/proc/sys/fs/binfmt_misc/ ConditionPathIsReadWrite=/proc/sys/