/etc/sysconfig/modules file doesn't work on systemd. For systemd
we need to use /etc/modules-load.d/*.conf file for systemd-modules-load
service.
--
Xi Ruoyao <r...@stu.xidian.edu.cn>
School of Aerospace Science and Technology, Xidian University
From 8db07d1ba12165ccb4a0bc2ec8c871700db119e1 Mon Sep 17 00:00:00 2001
From: Xi Ruoyao <r...@stu.xidian.edu.cn>
Date: Thu, 10 May 2018 17:12:35 +0800
Subject: [PATCH] Fix module load instruction for systemd
systemd doesn't support /etc/sysconfig/modules file. Use
systemd-modules-load configuration file insteadly.
---
chapter07/udev.xml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/chapter07/udev.xml b/chapter07/udev.xml
index d3bbd85f..d2b8ebd1 100644
--- a/chapter07/udev.xml
+++ b/chapter07/udev.xml
@@ -228,9 +228,14 @@
on <quote>softdep</quote> syntax and capabilities.</para>
<para>If the module in question is not a wrapper and is useful by itself,
- configure the <command>modules</command> bootscript to load this
+ configure the
+ <phrase revision="sysv"><command>modules</command> bootscript</phrase>
+ <phrase revision="systemd"><command>systemd-modules-load</command>
+ service</phrase> to load this
module on system boot. To do this, add the module name to the
- <filename>/etc/sysconfig/modules</filename> file on a separate line.
+ <filename revision="sysv">/etc/sysconfig/modules</filename>
+ <filename revision="systemd">/etc/modules-load.d/modules.conf</filename>
+ file on a separate line.
This works for wrapper modules too, but is suboptimal in that case.</para>
</sect3>
--
2.16.2
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page