summaryrefslogtreecommitdiff
path: root/units/systemd-sysext.service
diff options
context:
space:
mode:
Diffstat (limited to 'units/systemd-sysext.service')
-rw-r--r--units/systemd-sysext.service11
1 files changed, 7 insertions, 4 deletions
diff --git a/units/systemd-sysext.service b/units/systemd-sysext.service
index 35b5edca1d..245c0e5a0d 100644
--- a/units/systemd-sysext.service
+++ b/units/systemd-sysext.service
@@ -10,10 +10,7 @@
[Unit]
Description=Merge System Extension Images into /usr/ and /opt/
Documentation=man:systemd-sysext.service(8)
-DefaultDependencies=no
-Conflicts=shutdown.target
-After=local-fs.target
-Before=sysinit.target shutdown.target systemd-tmpfiles.service
+
ConditionCapability=CAP_SYS_ADMIN
ConditionDirectoryNotEmpty=|/etc/extensions
ConditionDirectoryNotEmpty=|/run/extensions
@@ -21,6 +18,12 @@ ConditionDirectoryNotEmpty=|/var/lib/extensions
ConditionDirectoryNotEmpty=|/usr/local/lib/extensions
ConditionDirectoryNotEmpty=|/usr/lib/extensions
+DefaultDependencies=no
+After=local-fs.target
+Before=sysinit.target systemd-tmpfiles.service
+Conflicts=shutdown.target
+Before=shutdown.target
+
[Service]
Type=oneshot
RemainAfterExit=yes