2020-11-09 07:23:58 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 19:35:03 +03:00
#
2010-08-19 04:03:03 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04:00
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
2010-08-19 04:03:03 +04:00
# (at your option) any later version.
[Unit]
Description = Load Kernel Modules
2012-05-31 18:00:34 +04:00
Documentation = man:systemd-modules-load.service(8) man:modules-load.d(5)
2010-08-19 04:03:03 +04:00
DefaultDependencies = no
Conflicts = shutdown.target
2010-11-19 18:24:21 +03:00
Before = sysinit.target shutdown.target
2012-04-22 15:39:18 +04:00
ConditionCapability = CAP_SYS_MODULE
2011-05-01 01:08:15 +04:00
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
2012-07-25 10:48:50 +04:00
ConditionKernelCommandLine = |modules-load
2024-03-16 19:10:14 +03:00
ConditionKernelCommandLine = |modules_load
2012-07-25 10:48:50 +04:00
ConditionKernelCommandLine = |rd.modules-load
2024-03-16 19:10:14 +03:00
ConditionKernelCommandLine = |rd.modules_load
2010-08-19 04:03:03 +04:00
[Service]
Type = oneshot
2010-08-20 05:26:15 +04:00
RemainAfterExit = yes
2023-06-12 04:15:19 +03:00
ExecStart = {{LIBEXECDIR}}/systemd-modules-load
2015-04-17 04:41:18 +03:00
TimeoutSec = 90s