]>
Commit | Line | Data |
---|---|---|
a7df2d1e ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
b2423f1f LP |
3 | # This file is part of systemd. |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
6 | # under the terms of the GNU Lesser General Public License as published by |
7 | # the Free Software Foundation; either version 2.1 of the License, or | |
b2423f1f LP |
8 | # (at your option) any later version. |
9 | ||
10 | [Unit] | |
11 | Description=Load Kernel Modules | |
9393a877 | 12 | Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5) |
b2423f1f LP |
13 | DefaultDependencies=no |
14 | Conflicts=shutdown.target | |
e096bf2f | 15 | Before=sysinit.target shutdown.target |
5cd6eef6 | 16 | ConditionCapability=CAP_SYS_MODULE |
adf70c5e KS |
17 | ConditionDirectoryNotEmpty=|/lib/modules-load.d |
18 | ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d | |
19 | ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d | |
20 | ConditionDirectoryNotEmpty=|/etc/modules-load.d | |
21 | ConditionDirectoryNotEmpty=|/run/modules-load.d | |
22cfbae0 MS |
22 | ConditionKernelCommandLine=|modules-load |
23 | ConditionKernelCommandLine=|rd.modules-load | |
b2423f1f LP |
24 | |
25 | [Service] | |
26 | Type=oneshot | |
449ddb2d | 27 | RemainAfterExit=yes |
b2423f1f | 28 | ExecStart=@rootlibexecdir@/systemd-modules-load |
b53374f9 | 29 | TimeoutSec=90s |