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