Changeset 94e6142 for BOOK/chroot/common/devices.xml
- Timestamp:
- Feb 21, 2006, 2:27:39 AM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 3793118a
- Parents:
- eb55250
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/chroot/common/devices.xml
reb55250 r94e6142 41 41 class="directory">/dev</filename>:</para> 42 42 43 <screen><userinput>mount -n - t tmpfs none /dev</userinput></screen>43 <screen><userinput>mount -n -vt tmpfs none /dev</userinput></screen> 44 44 45 45 <para>The Udev package is what actually creates the devices in the … … 56 56 mknod -m 444 /dev/random c 1 8 57 57 mknod -m 444 /dev/urandom c 1 9 58 chown root:tty /dev/{console,ptmx,tty}</userinput></screen>58 chown -v root:tty /dev/{console,ptmx,tty}</userinput></screen> 59 59 60 60 <para>There are some symlinks and directories required by LFS that … … 63 63 and directories need to be created here:</para> 64 64 65 <screen><userinput>ln -s /proc/self/fd /dev/fd66 ln -s /proc/self/fd/0 /dev/stdin67 ln -s /proc/self/fd/1 /dev/stdout68 ln -s /proc/self/fd/2 /dev/stderr69 ln -s /proc/kcore /dev/core70 mkdir /dev/pts71 mkdir /dev/shm</userinput></screen>65 <screen><userinput>ln -sv /proc/self/fd /dev/fd 66 ln -sv /proc/self/fd/0 /dev/stdin 67 ln -sv /proc/self/fd/1 /dev/stdout 68 ln -sv /proc/self/fd/2 /dev/stderr 69 ln -sv /proc/kcore /dev/core 70 mkdir -v /dev/pts 71 mkdir -v /dev/shm</userinput></screen> 72 72 73 73 <para>Finally, mount the proper virtual (kernel) file systems on the 74 74 newly-created directories:</para> 75 75 76 <screen><userinput>mount - t devpts -o gid=4,mode=620 none /dev/pts77 mount - t tmpfs none /dev/shm</userinput></screen>76 <screen><userinput>mount -vt devpts -o gid=4,mode=620 none /dev/pts 77 mount -vt tmpfs none /dev/shm</userinput></screen> 78 78 79 79 <para>The <command>mount</command> commands executed above may result
Note: See TracChangeset
for help on using the changeset viewer.