aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/devices.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/devices.xml')
-rw-r--r--chapter06/devices.xml23
1 files changed, 12 insertions, 11 deletions
diff --git a/chapter06/devices.xml b/chapter06/devices.xml
index f16fdb780..e094f1528 100644
--- a/chapter06/devices.xml
+++ b/chapter06/devices.xml
@@ -22,19 +22,18 @@ mknod -m 666 /dev/null c 1 3</userinput></screen>
</sect2>
<sect2>
-<title>Mounting ramfs and Populating /dev</title>
+<title>Mounting tmpfs and Populating /dev</title>
<para>The recommended method of populating the <filename
class="directory">/dev</filename> directory with devices is to mount a virtual
-filesystem (such as <systemitem class="filesystem">ramfs</systemitem> or
-<systemitem class="filesystem">tmpfs</systemitem>) on the <filename
-class="directory">/dev</filename> directory, and allow the devices to be created
-dynamically on that virtual filesystem as they are detected or accessed. This is
-generally done during the boot process. Since this new system has not been
-booted, it is necessary to do what the bootscripts would otherwise do by
-mounting <filename class="directory">/dev</filename>:</para>
+filesystem (such as <systemitem class="filesystem">tmpfs</systemitem>) on the
+<filename class="directory">/dev</filename> directory, and allow the devices to
+be created dynamically on that virtual filesystem as they are detected or
+accessed. This is generally done during the boot process. Since this new system
+has not been booted, it is necessary to do what the bootscripts would otherwise
+do by mounting <filename class="directory">/dev</filename>:</para>
-<screen><userinput>mount -n -t ramfs none /dev</userinput></screen>
+<screen><userinput>mount -n -t tmpfs none /dev</userinput></screen>
<para>The Udev package is what actually creates the devices in the <filename
class="directory">/dev</filename> directory. Since it will not be installed
@@ -51,8 +50,10 @@ mknod -m 444 /dev/urandom c 1 9
chown root:tty /dev/{console,ptmx,tty}</userinput></screen>
<!-- -->
-<para>There are some symlinks and directories required by LFS that are
-not created by Udev, so create those here:</para>
+<para>There are some symlinks and directories required by LFS that are created
+during system startup by the bootscripts. Since this is a chroot environment and
+not a booted environment, those symlinks and directories need to be created
+here:</para>
<screen><userinput>ln -s /proc/self/fd /dev/fd
ln -s /proc/self/fd/0 /dev/stdin