Revert "units: skip modprobe@.service if the unit appears to be already loaded"
authorFranck Bui <fbui@suse.com>
Thu, 19 Nov 2020 07:55:56 +0000 (08:55 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Dec 2020 17:08:31 +0000 (18:08 +0100)
commit24a04f9125050b2fb298ba914aabf21dc97d52eb
tree4628b74f941bf7fc404eaee7ff1c804b3a3a9f27
parentac01fe2a3b9f279fea11b5ea92c91c9c06a3eb77
Revert "units: skip modprobe@.service if the unit appears to be already loaded"

This reverts commit 9cbf1e58f9629af5c6b56777ee73dc6320306d6d.

The presence of /sys/module/%I directory can't be used to assert that the load
of a given module is complete and therefore the call to modprobe(8) can be
skipped. Indeed this directory is created before the init() function of the
module is called.

Users of modprobe@.service needs to be sure that once this service returns the
module is fully operational.

(cherry picked from commit b3e32582f67c68896b6b05893b138a975fa26454)
units/modprobe@.service