units: skip modprobe@.service if the unit appears to be already loaded
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 5 Mar 2020 06:20:49 +0000 (07:20 +0100)
committerChris Down <chris@chrisdown.name>
Thu, 5 Mar 2020 18:43:50 +0000 (18:43 +0000)
commit9cbf1e58f9629af5c6b56777ee73dc6320306d6d
tree30e26ff5099f29d11f6ec7668c179ab45bedc206
parentff12a7954c1993dd1f38d49052e79bb245d75dc4
units: skip modprobe@.service if the unit appears to be already loaded

Possible alternative to #14819.

For me, setting RemainAfterExit=yes would be OK, but if people think that it
might cause issues, then this could be a reasonable alternative that still
let's us skip the invocation of the separate binary.
units/modprobe@.service