]> err.no Git - systemd/commitdiff
units: do binfmt magic only when /proc/sys is writable
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Apr 2012 15:39:37 +0000 (17:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Apr 2012 16:52:53 +0000 (18:52 +0200)
units/proc-sys-fs-binfmt_misc.automount
units/systemd-binfmt.service.in

index 6edd1f55d3ec9143e5235dc719745031e0efae9b..658b55dc327dd1ff9a32a251e928fcda46e840d7 100644 (file)
@@ -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
index 267d5c3fd830bc47957e0e463b15e86745f74d24..8d288066dccbd028a0b2e3a21e1d677b3fd0517c 100644 (file)
@@ -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