]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: stop recommending modprobe -abq in ExecStartPre= 14512/head
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2020 18:00:56 +0000 (19:00 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2020 18:00:56 +0000 (19:00 +0100)
man/systemd.resource-control.xml

index a9600917ea465b17ecb623c6a2bacf79d1eace73..bf7aff6b2026787a8995e036269268372cf58d0e 100644 (file)
           <para>Note that whitelists defined this way should only reference device groups which are
           resolvable at the time the unit is started. Any device groups not resolvable then are not added to
           the device whitelist. In order to work around this limitation, consider extending service units
-          with an <command>ExecStartPre=/sbin/modprobe…</command> line that loads the necessary
-          kernel module implementing the device group if missing. Example: <programlisting>…
+          with a pair of <command>After=modprobe@xyz.service</command> and
+          <command>Wants=modprobe@xyz.service</command> lines that load the necessary kernel module
+          implementing the device group if missing.
+          Example: <programlisting>…
+[Unit]
+Wants=modprobe@loop.service
+After=modprobe@loop.service
+
 [Service]
-ExecStartPre=-/sbin/modprobe -abq loop
 DeviceAllow=block-loop
 DeviceAllow=/dev/loop-control
 …</programlisting></para>