mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
man: stop recommending modprobe -abq in ExecStartPre=
This commit is contained in:
parent
d5016c21d7
commit
3a827125e7
@ -720,10 +720,15 @@
|
||||
<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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user