summaryrefslogtreecommitdiffstats
path: root/units/modprobe@.service
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-01-07 18:54:24 +0100
committerLennart Poettering <lennart@poettering.net>2020-01-07 18:54:24 +0100
commitd5016c21d7bb60f38aa461887cd843fabbc986ca (patch)
treeba8c31af8f6ba1620f2a239f57655fc4d4b0b09a /units/modprobe@.service
parentunit: make sure to pull in modprobe@loop.service when RootImage= is used with... (diff)
downloadsystemd-d5016c21d7bb60f38aa461887cd843fabbc986ca.tar.xz
systemd-d5016c21d7bb60f38aa461887cd843fabbc986ca.zip
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
Diffstat (limited to 'units/modprobe@.service')
-rw-r--r--units/modprobe@.service5
1 files changed, 4 insertions, 1 deletions
diff --git a/units/modprobe@.service b/units/modprobe@.service
index 4c5bd637e3..5dca2cb771 100644
--- a/units/modprobe@.service
+++ b/units/modprobe@.service
@@ -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