units: tweaks to modprobe@.service

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
This commit is contained in:
Lennart Poettering 2020-01-07 18:54:24 +01:00
parent 867af7282b
commit d5016c21d7

View 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