udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / units / systemd-modules-load.service.in
blob604d8712a049785ebb2ad0a9b747c7a18cffbf5f
1 #  SPDX-License-Identifier: LGPL-2.1-or-later
3 #  This file is part of systemd.
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.
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
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
25 [Service]
26 Type=oneshot
27 RemainAfterExit=yes
28 ExecStart={{ROOTLIBEXECDIR}}/systemd-modules-load
29 TimeoutSec=90s