From: Lennart Poettering Date: Tue, 7 Jan 2020 18:00:56 +0000 (+0100) Subject: man: stop recommending modprobe -abq in ExecStartPre= X-Git-Tag: v245-rc1~168^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14512%2Fhead;p=thirdparty%2Fsystemd.git man: stop recommending modprobe -abq in ExecStartPre= --- diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index a9600917ea4..bf7aff6b202 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -720,10 +720,15 @@ 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 ExecStartPre=/sbin/modprobe… line that loads the necessary - kernel module implementing the device group if missing. Example: … + with a pair of After=modprobe@xyz.service and + Wants=modprobe@xyz.service lines that load the necessary kernel module + implementing the device group if missing. + Example: … +[Unit] +Wants=modprobe@loop.service +After=modprobe@loop.service + [Service] -ExecStartPre=-/sbin/modprobe -abq loop DeviceAllow=block-loop DeviceAllow=/dev/loop-control …