aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bootscripts/lfs/init.d/mountvirtfs8
-rw-r--r--chapter09/usage.xml22
-rw-r--r--chapter10/kernel.xml31
3 files changed, 44 insertions, 17 deletions
diff --git a/bootscripts/lfs/init.d/mountvirtfs b/bootscripts/lfs/init.d/mountvirtfs
index 3507beea7..639634377 100644
--- a/bootscripts/lfs/init.d/mountvirtfs
+++ b/bootscripts/lfs/init.d/mountvirtfs
@@ -2,7 +2,7 @@
########################################################################
# Begin mountvirtfs
#
-# Description : Mount proc, sysfs, and run
+# Description : Ensure proc, sysfs, run, and dev are mounted
#
# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
# DJ Lucas - dj@linuxfromscratch.org
@@ -20,10 +20,12 @@
# Should-Stop:
# Default-Start: S
# Default-Stop:
-# Short-Description: Mounts /sys and /proc virtual (kernel) filesystems.
-# Mounts /run (tmpfs) and /dev (devtmpfs).
+# Short-Description: Mounts various special fs needed at start
# Description: Mounts /sys and /proc virtual (kernel) filesystems.
# Mounts /run (tmpfs) and /dev (devtmpfs).
+# This is done only if they are not already mounted.
+# with the kernel config proposed in the book, dev
+# should be automatically mounted by the kernel.
# X-LFS-Provided-By: LFS
### END INIT INFO
diff --git a/chapter09/usage.xml b/chapter09/usage.xml
index 6f8d7a03f..33890acd2 100644
--- a/chapter09/usage.xml
+++ b/chapter09/usage.xml
@@ -35,12 +35,22 @@
<literallayout>0: halt the computer
1: single-user mode
-2: multi-user mode without networking
+2: reserved for customization, otherwise does the same as 3
3: multi-user mode with networking
4: reserved for customization, otherwise does the same as 3
-5: same as 4, it is usually used for GUI login (like X's <command>xdm</command> or KDE's <command>kdm</command>)
+5: same as 4, it is usually used for GUI login (like GNOME's <command>gdm</command> or LXDE's <command>lxdm</command>)
6: reboot the computer</literallayout>
+ <note>
+ <para>
+ Classically, run level 2 above was defined as
+ "multi-user mode without networking", but this was only the case
+ many years ago when multiple users could log into a system connected via
+ serial ports. In today's environment it makes no sense and
+ we designate it now as "reserved".
+ </para>
+ </note>
+
</sect2>
<sect2 id="conf-sysvinit" role="configuration">
@@ -127,7 +137,7 @@ EOF</userinput></screen>
<para>There are a number of directories under <filename
class="directory">/etc/rc.d</filename> that look like <filename
class="directory">rc?.d</filename> (where ? is the number of the run-level) and
- <filename class="directory">rcsysinit.d</filename>, all containing a number of
+ <filename class="directory">rcS.d</filename>, all containing a number of
symbolic links. Some begin with a <emphasis>K</emphasis>, the others begin with
an <emphasis>S</emphasis>, and all of them have two numbers following the
initial letter. The K means to stop (kill) a service and the S means to start a
@@ -155,7 +165,11 @@ EOF</userinput></screen>
to be started. They will be called with the parameter
<parameter>stop</parameter> to stop something. The logic behind this
is that when a user is going to reboot or halt the system, nothing
- needs to be started. The system only needs to be stopped.</para>
+ needs to be started, but the order of shutdown needs to be controlled.
+ For these run levels, all <emphasis>K</emphasis> prefixed scripts will be
+ run before any <emphasis>S</emphasis> prefixed scripts are run with the
+ <parameter>stop</parameter> parameter.
+ </para>
<para>These are descriptions of what the arguments make the scripts
do:</para>
diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml
index 43177f15d..713bab93b 100644
--- a/chapter10/kernel.xml
+++ b/chapter10/kernel.xml
@@ -113,38 +113,40 @@ Device Drivers ---&gt;
[*] Support for frame buffer devices ----
Generic Driver Options ---&gt;
[ ] Support for uevent helper [CONFIG_UEVENT_HELPER]
- [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]</screen>
+ [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]
+ [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs [CONFIG_DEVTMPFS_MOUNT]</screen>
<screen role="nodump" revision="systemd">General setup -->
[ ] Auditing Support [CONFIG_AUDIT]
+ CPU/Task time and stats accounting ---&gt;
+ [*] Pressure stall information tracking [CONFIG_PSI]
&lt; &gt; Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
[*] Control Group support [CONFIG_CGROUPS] ---&gt;
[*] Memory controller [CONFIG_MEMCG]
[ ] Enable deprecated sysfs features to support old userspace tools [CONFIG_SYSFS_DEPRECATED]
[*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---&gt;
[*] open by fhandle syscalls [CONFIG_FHANDLE]
- CPU/Task time and stats accounting ---&gt;
- [*] Pressure stall information tracking [CONFIG_PSI]
General architecture-dependent options ---&gt;
[*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP]
Networking support ---&gt;
Networking options ---&gt;
&lt;*&gt; The IPv6 protocol [CONFIG_IPV6]
Device Drivers ---&gt;
- Firmware Drivers ---&gt;
- [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID]
- Graphics support ---&gt;
- Frame buffer Devices ---&gt;
- [*] Support for frame buffer devices ----
Generic Driver Options ---&gt;
[ ] Support for uevent helper [CONFIG_UEVENT_HELPER]
[*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]
+ [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs [CONFIG_DEVTMPFS_MOUNT]
Firmware Loader ---&gt;
[ ] Enable the firmware sysfs fallback mechanism [CONFIG_FW_LOADER_USER_HELPER]
+ Firmware Drivers ---&gt;
+ [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID]
+ Graphics support ---&gt;
+ Frame buffer Devices ---&gt;
+ &lt;*&gt; Support for frame buffer devices ---&gt;
File systems ---&gt;
[*] Inotify support for userspace [CONFIG_INOTIFY_USER]
- Pseudo filesystems ---&gt;
- [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</screen>
+ Pseudo filesystems ---&gt;
+ [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</screen>
</note>
<note revision="systemd">
@@ -199,6 +201,15 @@ File systems ---&gt;
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><parameter>Automount devtmpfs at /dev</parameter></term>
+ <listitem>
+ <para>This will mount the kernel view of the devices on /dev
+ upon switching to root filesystem just before starting
+ init.</para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
<para>Alternatively, <command>make oldconfig</command> may be more