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