Changeset e88c73c for chapter06/kernfs.xml
- Timestamp:
- 02/04/2014 11:36:05 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- f8756ab
- Parents:
- 848907c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/kernfs.xml
r848907c re88c73c 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.