diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-16 09:19:07 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-16 09:21:22 +0100 |
commit | 0491ab5fcd1e8a7d6c532c591dabb98a9e6ed648 (patch) | |
tree | 17df449a1848bab0fb53f34195191ff04ffc30fb /units | |
parent | fe8538e499fe18daedb58d871fa171bcb5a3f2fd (diff) | |
download | systemd-0491ab5fcd1e8a7d6c532c591dabb98a9e6ed648.tar.gz |
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.
Diffstat (limited to 'units')
-rw-r--r-- | units/systemd-binfmt.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-binfmt.service.in b/units/systemd-binfmt.service.in index fdafce7ff7..96f595ad72 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 |