Changeset cb23c1a for chapter06/kernfs.xml
- Timestamp:
- 01/20/2014 01:18:30 AM (10 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, 7.5, 7.6, 7.7, 7.8, 7.9, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 053b206
- Parents:
- cde2ae7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/kernfs.xml
rcde2ae7 rcb23c1a 23 23 mounted:</para> 24 24 25 <screen><userinput>mkdir -pv $LFS/{dev,proc,sys }</userinput></screen>25 <screen><userinput>mkdir -pv $LFS/{dev,proc,sys,run}</userinput></screen> 26 26 27 27 <sect2> … … 71 71 <screen><userinput>mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620 72 72 mount -vt proc proc $LFS/proc 73 mount -vt sysfs sysfs $LFS/sys</userinput></screen> 73 mount -vt sysfs sysfs $LFS/sys 74 mount -vt tmpfs tmpfs $LFS/run</userinput></screen> 74 75 75 76 <variablelist> … … 103 104 <para>In some host systems, <filename>/dev/shm</filename> is a 104 105 symbolic link to <filename class="directory">/run/shm</filename>. 105 Inside a chroot environment, this temporary file system needs106 to be mounted separate from the host file system:</para>106 The /run tmpfs was mounted above so in this case only a 107 directory needs to be created.</para> 107 108 108 109 <screen><userinput>if [ -h $LFS/dev/shm ]; then 109 link=$(readlink $LFS/dev/shm) 110 mkdir -pv $LFS/$link 111 mount -vt tmpfs shm $LFS/$link 112 unset link 113 else 114 mount -vt tmpfs shm $LFS/dev/shm 110 mkdir -pv $LFS/$(readlink $LFS/dev/shm) 115 111 fi</userinput></screen> 116 112
Note:
See TracChangeset
for help on using the changeset viewer.