]>
Commit | Line | Data |
---|---|---|
52ad194e MB |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
663996b3 MS |
3 | # This file is part of systemd. |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
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 | |
8 | # (at your option) any later version. | |
9 | ||
10 | [Unit] | |
11 | Description=Load Kernel Modules | |
12 | Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5) | |
13 | DefaultDependencies=no | |
14 | Conflicts=shutdown.target | |
663996b3 MS |
15 | Before=sysinit.target shutdown.target |
16 | ConditionCapability=CAP_SYS_MODULE | |
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 | |
22 | ConditionKernelCommandLine=|modules-load | |
23 | ConditionKernelCommandLine=|rd.modules-load | |
24 | ||
25 | [Service] | |
26 | Type=oneshot | |
27 | RemainAfterExit=yes | |
28 | ExecStart=@rootlibexecdir@/systemd-modules-load | |
e3bff60a | 29 | TimeoutSec=90s |