From 0491ab5fcd1e8a7d6c532c591dabb98a9e6ed648 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 16 Nov 2021 09:19:07 +0100 Subject: [PATCH] units: delay binfmt processing until after local-fs.target Users may use rules that refer to binaries e.g. in /opt or /usr/local, and those directories may be separate mount points. We don't need the binfmt rules in early boot, so let's delay the service so that we can rely on the full local filesystem being visible. Fixes #21178. --- units/systemd-binfmt.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/units/systemd-binfmt.service.in b/units/systemd-binfmt.service.in index fdafce7ff72..96f595ad72c 100644 --- a/units/systemd-binfmt.service.in +++ b/units/systemd-binfmt.service.in @@ -16,6 +16,7 @@ DefaultDependencies=no Conflicts=shutdown.target After=proc-sys-fs-binfmt_misc.automount After=proc-sys-fs-binfmt_misc.mount +After=local-fs.target Before=sysinit.target shutdown.target ConditionPathIsReadWrite=/proc/sys/ ConditionDirectoryNotEmpty=|/lib/binfmt.d -- 2.47.3