From 41807efb1594ae8e71e0255e154ea7d17be2251a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 13 Apr 2012 17:39:37 +0200 Subject: units: do binfmt magic only when /proc/sys is writable --- units/systemd-binfmt.service.in | 1 + 1 file changed, 1 insertion(+) (limited to 'units/systemd-binfmt.service.in') diff --git a/units/systemd-binfmt.service.in b/units/systemd-binfmt.service.in index 267d5c3fd8..8d288066dc 100644 --- a/units/systemd-binfmt.service.in +++ b/units/systemd-binfmt.service.in @@ -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 -- cgit v1.2.3-54-g00ecf