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/chapter10/kernel.xml b/chapter10/kernel.xml
index 32e1047e5..f3dab4239 100644
--- a/chapter10/kernel.xml
+++ b/chapter10/kernel.xml
@@ -113,38 +113,40 @@ Device Drivers --->
[*] Support for frame buffer devices ----
Generic Driver Options --->
[ ] Support for uevent helper [CONFIG_UEVENT_HELPER]
- [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]
+ [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]
+ [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs [CONFIG_DEVTMPFS_MOUNT]
General setup -->
[ ] Auditing Support [CONFIG_AUDIT]
+ CPU/Task time and stats accounting --->
+ [*] Pressure stall information tracking [CONFIG_PSI]
< > Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
[*] Control Group support [CONFIG_CGROUPS] --->
[*] Memory controller [CONFIG_MEMCG]
[ ] Enable deprecated sysfs features to support old userspace tools [CONFIG_SYSFS_DEPRECATED]
[*] Configure standard kernel features (expert users) [CONFIG_EXPERT] --->
[*] open by fhandle syscalls [CONFIG_FHANDLE]
- CPU/Task time and stats accounting --->
- [*] Pressure stall information tracking [CONFIG_PSI]
General architecture-dependent options --->
[*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP]
Networking support --->
Networking options --->
<*> The IPv6 protocol [CONFIG_IPV6]
Device Drivers --->
+ Generic Driver Options --->
+ [ ] 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 --->
+ [ ] Enable the firmware sysfs fallback mechanism [CONFIG_FW_LOADER_USER_HELPER]
Firmware Drivers --->
[*] Export DMI identification via sysfs to userspace [CONFIG_DMIID]
Graphics support --->
Frame buffer Devices --->
- [*] Support for frame buffer devices ----
- Generic Driver Options --->
- [ ] Support for uevent helper [CONFIG_UEVENT_HELPER]
- [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]
- Firmware Loader --->
- [ ] Enable the firmware sysfs fallback mechanism [CONFIG_FW_LOADER_USER_HELPER]
+ <*> Support for frame buffer devices --->
File systems --->
[*] Inotify support for userspace [CONFIG_INOTIFY_USER]
- Pseudo filesystems --->
- [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]
+ Pseudo filesystems --->
+ [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]
@@ -199,6 +201,15 @@ File systems --->
+
+ Automount devtmpfs at /dev
+
+ This will mount the kernel view of the devices on /dev
+ upon switching to root filesystem just before starting
+ init.
+
+
+
Alternatively, make oldconfig may be more