systemd-modules-load.service 967 B

123456789101112131415161718192021222324252627
  1. # This file is part of systemd.
  2. #
  3. # systemd is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Lesser General Public License as published by
  5. # the Free Software Foundation; either version 2.1 of the License, or
  6. # (at your option) any later version.
  7. [Unit]
  8. Description=Load Kernel Modules
  9. Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5)
  10. DefaultDependencies=no
  11. Conflicts=shutdown.target
  12. Before=sysinit.target shutdown.target
  13. ConditionCapability=CAP_SYS_MODULE
  14. ConditionDirectoryNotEmpty=|/lib/modules-load.d
  15. ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d
  16. ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d
  17. ConditionDirectoryNotEmpty=|/etc/modules-load.d
  18. ConditionDirectoryNotEmpty=|/run/modules-load.d
  19. ConditionKernelCommandLine=|modules-load
  20. ConditionKernelCommandLine=|rd.modules-load
  21. [Service]
  22. Type=oneshot
  23. RemainAfterExit=yes
  24. ExecStart=/lib/systemd/systemd-modules-load
  25. TimeoutSec=90s