1:255.9-alt1
[systemd_ALT.git] / units / systemd-modules-load.service.in
blobad262fa13ab1e752c5b5889f7e31a05107467f9a
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=|modules_load
24 ConditionKernelCommandLine=|rd.modules-load
25 ConditionKernelCommandLine=|rd.modules_load
27 [Service]
28 Type=oneshot
29 RemainAfterExit=yes
30 ExecStart={{LIBEXECDIR}}/systemd-modules-load
31 TimeoutSec=90s