X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fsystemd-modules-load.service.in;h=040a0febe82d1272e8c39c8871eec35a1e5bbd6a;hp=72e1d70dce6f896aa99aac11b1360fc3de221bf0;hb=d99ce93383028f08470b6d334bc1a31ca8d16b22;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8 diff --git a/units/systemd-modules-load.service.in b/units/systemd-modules-load.service.in index 72e1d70dc..040a0febe 100644 --- a/units/systemd-modules-load.service.in +++ b/units/systemd-modules-load.service.in @@ -7,15 +7,18 @@ [Unit] Description=Load Kernel Modules +Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5) DefaultDependencies=no Conflicts=shutdown.target -After=systemd-readahead-collect.service systemd-readahead-replay.service Before=sysinit.target shutdown.target +ConditionCapability=CAP_SYS_MODULE ConditionDirectoryNotEmpty=|/lib/modules-load.d ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d ConditionDirectoryNotEmpty=|/etc/modules-load.d ConditionDirectoryNotEmpty=|/run/modules-load.d +ConditionKernelCommandLine=|modules-load +ConditionKernelCommandLine=|rd.modules-load [Service] Type=oneshot