mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-20 03:05:04 +01:00
Expand explanation of device node creation in chapter 6 (fixes bug 1593)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6666 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
7b303d47a0
commit
a55f08682a
@ -112,6 +112,9 @@ First a summary, then a detailed log.</para>
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem><para>August 12th, 2005 [matt]: Expand explanation of device node
|
||||||
|
creation at the start of chapter 6.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>August 6th, 2005 [matt]: Fix incorrect version number for
|
<listitem><para>August 6th, 2005 [matt]: Fix incorrect version number for
|
||||||
expect's installed library (Bug 1608)</para></listitem>
|
expect's installed library (Bug 1608)</para></listitem>
|
||||||
|
|
||||||
|
@ -14,8 +14,12 @@
|
|||||||
|
|
||||||
<para>When the kernel boots the system, it requires the presence of a few device
|
<para>When the kernel boots the system, it requires the presence of a few device
|
||||||
nodes, in particular the <filename class="devicefile">console</filename> and
|
nodes, in particular the <filename class="devicefile">console</filename> and
|
||||||
<filename class="devicefile">null</filename> devices. Create these by
|
<filename class="devicefile">null</filename> devices. The device nodes will
|
||||||
running the following commands:</para>
|
be created on the hard disk so that they are available before
|
||||||
|
<command>udev</command> has been started, and additionally when Linux is started
|
||||||
|
in single user mode (hence the restrictive permissions on
|
||||||
|
<filename class="devicefile">console</filename>). Create the devices by running
|
||||||
|
the following commands:</para>
|
||||||
|
|
||||||
<screen><userinput>mknod -m 600 /dev/console c 5 1
|
<screen><userinput>mknod -m 600 /dev/console c 5 1
|
||||||
mknod -m 666 /dev/null c 1 3</userinput></screen>
|
mknod -m 666 /dev/null c 1 3</userinput></screen>
|
||||||
@ -48,7 +52,6 @@ mknod -m 666 /dev/tty c 5 0
|
|||||||
mknod -m 444 /dev/random c 1 8
|
mknod -m 444 /dev/random c 1 8
|
||||||
mknod -m 444 /dev/urandom c 1 9
|
mknod -m 444 /dev/urandom c 1 9
|
||||||
chown root:tty /dev/{console,ptmx,tty}</userinput></screen>
|
chown root:tty /dev/{console,ptmx,tty}</userinput></screen>
|
||||||
<!-- -->
|
|
||||||
|
|
||||||
<para>There are some symlinks and directories required by LFS that are created
|
<para>There are some symlinks and directories required by LFS that are created
|
||||||
during system startup by the LFS-Bootscripts package. Since this is a chroot
|
during system startup by the LFS-Bootscripts package. Since this is a chroot
|
||||||
|
Loading…
Reference in New Issue
Block a user