Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/boot/common/devices.xml

    r6243b1f r2572b8e  
    2020    <note os="a">
    2121      <para>The commands in the remainder of the book should be run as
    22       the <systemitem class="username">root</systemitem> user. Check
    23       that ${CLFS} is set in the
    24       <systemitem class="username">root</systemitem> user&rsquo;s environment
    25        before proceeding.</para>
     22      the <systemitem class="username">root</systemitem> user. Also,
     23      double-check that ${CLFS} is set as
     24      <systemitem class="username">root</systemitem>.</para>
    2625    </note>
    2726
     
    3635    the following commands:</para>
    3736
    38 <screen><userinput>mknod -m 600 ${CLFS}/dev/console c 5 1
    39 mknod -m 666 ${CLFS}/dev/null c 1 3</userinput></screen>
     37<screen><userinput>mknod -m 0600 ${CLFS}/dev/console c 5 1
     38mknod -m 0666 ${CLFS}/dev/null c 1 3
     39mknod -m 0666 ${CLFS}/dev/zero c 1 5</userinput></screen>
    4040
    41     <para>Before udev starts, a tmpfs filesystem is mounted over
     41    <para>When systemd starts a tmpfs filesystem is mounted over
    4242    <filename class="directory">/dev</filename> and the previous entries are
    43     no longer available. The following command creates files that are copied
    44     over by the udev bootscript:</para>
     43    no-longer available. The folling command creates files that are copied
     44    over when udevd starts:</para>
    4545
    46 <screen><userinput>mknod -m 600 ${CLFS}/lib/udev/devices/console c 5 1
    47 mknod -m 666 ${CLFS}/lib/udev/devices/null c 1 3</userinput></screen>
     46<screen><userinput>mkdir -pv ${CLFS}/lib/udev/devices/{pts,shm}
     47mknod -m 0600 ${CLFS}/lib/udev/devices/console c 5 1
     48mknod -m 0666 ${CLFS}/lib/udev/devices/null c 1 3
     49mknod -m 0666 ${CLFS}/lib/udev/devices/zero c 1 5
     50mknod -m 0600 ${CLFS}/lib/udev/devices/kmsg c 1 11
     51ln -snvf /proc/self/fd ${CLFS}/lib/udev/devices/fd
     52ln -snvf /proc/self/fd/0 ${CLFS}/lib/udev/devices/stdin
     53ln -snvf /proc/self/fd/1 ${CLFS}/lib/udev/devices/stdout
     54ln -snvf /proc/self/fd/2 ${CLFS}/lib/udev/devices/stderr
     55ln -snvf /proc/kcore ${CLFS}/lib/udev/devices/core</userinput></screen>
    4856
    4957  </sect2>
Note: See TracChangeset for help on using the changeset viewer.