]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: tweaks to modprobe@.service
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2020 17:54:24 +0000 (18:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2020 17:54:24 +0000 (18:54 +0100)
Let's use uppercase wording in the description string, like we usually
do.

Let's allow using this service in early boot.

If it's pulled into the initial transaction it's better to finish
loading this before sysinit.target.

Don't bother with this in containers that lack CAP_SYS_MODULE

units/modprobe@.service

index 4c5bd637e3cf4370bab34e1774a845e25653641a..5dca2cb77187e249efb9f4b5f71343cdd8d50565 100644 (file)
@@ -8,8 +8,11 @@
 #  (at your option) any later version.
 
 [Unit]
-Description=Load kernel module %i
+Description=Load Kernel Module %i
+DefaultDependencies=no
+Before=sysinit.target
 Documentation=man:modprobe(8)
+ConditionCapability=CAP_SYS_MODULE
 
 [Service]
 Type=oneshot