mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
units: do binfmt magic only when /proc/sys is writable
This commit is contained in:
parent
9f28b98ec6
commit
41807efb15
@ -9,7 +9,8 @@
|
||||
Description=Arbitrary Executable File Formats File System Automount Point
|
||||
DefaultDependencies=no
|
||||
Before=sysinit.target
|
||||
ConditionPathExists=/proc/sys/fs/binfmt_misc
|
||||
ConditionPathExists=/proc/sys/fs/binfmt_misc/
|
||||
ConditionPathIsReadWrite=/proc/sys/
|
||||
|
||||
[Automount]
|
||||
Where=/proc/sys/fs/binfmt_misc
|
||||
|
@ -11,6 +11,7 @@ DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
After=systemd-readahead-collect.service systemd-readahead-replay.service proc-sys-fs-binfmt_misc.automount
|
||||
Before=sysinit.target shutdown.target
|
||||
ConditionPathIsReadWrite=/proc/sys/
|
||||
ConditionDirectoryNotEmpty=|/usr/lib/binfmt.d
|
||||
ConditionDirectoryNotEmpty=|/usr/local/lib/binfmt.d
|
||||
ConditionDirectoryNotEmpty=|/etc/binfmt.d
|
||||
|
Loading…
Reference in New Issue
Block a user