Changeset 5998892 for chapter06/devices.xml
- Timestamp:
- 09/29/2005 08:55:40 PM (19 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 2f1cb7d
- Parents:
- 8c68add
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/devices.xml
r8c68add r5998892 38 38 otherwise do by mounting <filename class="directory">/dev</filename>:</para> 39 39 40 <screen><userinput>mount -n -t tmpfs none /dev</userinput></screen>40 <screen><userinput>mount -nvt tmpfs none /dev</userinput></screen> 41 41 42 42 <para>The Udev package is what actually creates the devices in the <filename … … 52 52 mknod -m 444 /dev/random c 1 8 53 53 mknod -m 444 /dev/urandom c 1 9 54 chown root:tty /dev/{console,ptmx,tty}</userinput></screen>54 chown -v root:tty /dev/{console,ptmx,tty}</userinput></screen> 55 55 56 56 <para>There are some symlinks and directories required by LFS that are created … … 59 59 be created here:</para> 60 60 61 <screen><userinput>ln -s /proc/self/fd /dev/fd62 ln -s /proc/self/fd/0 /dev/stdin63 ln -s /proc/self/fd/1 /dev/stdout64 ln -s /proc/self/fd/2 /dev/stderr65 ln -s /proc/kcore /dev/core66 mkdir /dev/pts67 mkdir /dev/shm</userinput></screen>61 <screen><userinput>ln -sv /proc/self/fd /dev/fd 62 ln -sv /proc/self/fd/0 /dev/stdin 63 ln -sv /proc/self/fd/1 /dev/stdout 64 ln -sv /proc/self/fd/2 /dev/stderr 65 ln -sv /proc/kcore /dev/core 66 mkdir -v /dev/pts 67 mkdir -v /dev/shm</userinput></screen> 68 68 69 69 <para>Finally, mount the proper virtual (kernel) file systems on the 70 70 newly-created directories:</para> 71 71 72 <screen><userinput>mount - t devpts -o gid=4,mode=620 none /dev/pts73 mount - t tmpfs none /dev/shm</userinput></screen>72 <screen><userinput>mount -vt devpts -o gid=4,mode=620 none /dev/pts 73 mount -vt tmpfs none /dev/shm</userinput></screen> 74 74 75 75 <para>The <command>mount</command> commands executed above may result
Note:
See TracChangeset
for help on using the changeset viewer.