kmod.service 1.0 KB

123456789101112131415161718192021222324252627282930
  1. # SPDX-License-Identifier: LGPL-2.1+
  2. #
  3. # This file is part of systemd.
  4. #
  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.
  9. [Unit]
  10. Description=Load Kernel Modules
  11. Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5)
  12. DefaultDependencies=no
  13. Conflicts=shutdown.target
  14. Before=sysinit.target shutdown.target
  15. ConditionCapability=CAP_SYS_MODULE
  16. ConditionVirtualization=!container
  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
  24. [Service]
  25. Type=oneshot
  26. RemainAfterExit=yes
  27. ExecStart=/lib/systemd/systemd-modules-load
  28. TimeoutSec=90s