mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
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.
This commit is contained in:
parent
fe8538e499
commit
0491ab5fcd
@ -16,6 +16,7 @@ DefaultDependencies=no
|
|||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
After=proc-sys-fs-binfmt_misc.automount
|
After=proc-sys-fs-binfmt_misc.automount
|
||||||
After=proc-sys-fs-binfmt_misc.mount
|
After=proc-sys-fs-binfmt_misc.mount
|
||||||
|
After=local-fs.target
|
||||||
Before=sysinit.target shutdown.target
|
Before=sysinit.target shutdown.target
|
||||||
ConditionPathIsReadWrite=/proc/sys/
|
ConditionPathIsReadWrite=/proc/sys/
|
||||||
ConditionDirectoryNotEmpty=|/lib/binfmt.d
|
ConditionDirectoryNotEmpty=|/lib/binfmt.d
|
||||||
|
Loading…
Reference in New Issue
Block a user