Changeset 2572b8e for BOOK/boot/common


Ignore:
Timestamp:
Jan 30, 2011, 12:25:16 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
a4d251f
Parents:
2580945
git-author:
Joe Ciccone <jciccone@…> (01/30/11 12:13:32)
git-committer:
Joe Ciccone <jciccone@…> (01/30/11 12:25:16)
Message:

Create the required device nodes on the udev page instead of relying
on the bootscripts to create them.

File:
1 edited

Legend:

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

    r2580945 r2572b8e  
    3535    the following commands:</para>
    3636
    37 <screen><userinput>mknod -m 600 ${CLFS}/dev/console c 5 1
    38 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>
    3940
    40     <para>Before udev starts a tmpfs filesystem is mounted over <filename class="directory">/dev</filename> and the previous entries are no-longer available. The folling command creates files that are copied over by the udev bootscript:</para>
     41    <para>When systemd starts a tmpfs filesystem is mounted over
     42    <filename class="directory">/dev</filename> and the previous entries are
     43    no-longer available. The folling command creates files that are copied
     44    over when udevd starts:</para>
    4145
    42 <screen><userinput>mknod -m 600 ${CLFS}/lib/udev/devices/console c 5 1
    43 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>
    4456
    4557  </sect2>
Note: See TracChangeset for help on using the changeset viewer.