|
@@ -24,21 +24,22 @@ mknod -m 666 /dev/null c 1 3</userinput></screen>
|
|
|
<sect2>
|
|
|
<title>Mounting ramfs and Populating /dev</title>
|
|
|
|
|
|
-<para>The ideal way to populate <filename
|
|
|
-class="directory">/dev</filename> is to mount a <systemitem
|
|
|
-class="filesystem">ramfs</systemitem> onto <filename
|
|
|
-class="directory">/dev</filename>, like <systemitem
|
|
|
-class="filesystem">tmpfs</systemitem>, and create the devices on there
|
|
|
-during each bootup. Since the system has not been booted, it is
|
|
|
-necessary to do what the bootscripts would otherwise do and populate
|
|
|
-<filename class="directory">/dev</filename>. Begin by mounting
|
|
|
-<filename class="directory">/dev</filename>:</para>
|
|
|
+<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>
|
|
|
|
|
|
<screen><userinput>mount -n -t ramfs none /dev</userinput></screen>
|
|
|
|
|
|
-<!-- Edit Me -->
|
|
|
-<para>Since the Udev package will not be installed until later on in the
|
|
|
-process, create a minimal set of device nodes used for building:</para>
|
|
|
+<para>The Udev package is what actually creates the devices in the <filename
|
|
|
+class="directory">/dev</filename> directory. Since it will not be installed
|
|
|
+until later on in the process, manually create the minimal set of device nodes
|
|
|
+needed to complete the building of this system:</para>
|
|
|
|
|
|
<screen><userinput>mknod -m 622 /dev/console c 5 1
|
|
|
mknod -m 666 /dev/null c 1 3
|