|
@@ -69,10 +69,22 @@ mknod -m 666 $LFS/dev/null c 1 3</userinput></screen>
|
|
|
<para>Now mount the remaining virtual kernel filesystems:</para>
|
|
|
|
|
|
<screen><userinput>mount -vt devpts devpts $LFS/dev/pts
|
|
|
-mount -vt tmpfs shm $LFS/dev/shm
|
|
|
mount -vt proc proc $LFS/proc
|
|
|
mount -vt sysfs sysfs $LFS/sys</userinput></screen>
|
|
|
|
|
|
+ <para>In some host systems, <filename>/dev/shm</filename> is a
|
|
|
+ symbolic link to <filename class="directory">/run/shm</filename>.
|
|
|
+ Inside a chroot envirnment, this symbolic link needs to be
|
|
|
+ changed to a normal directory before mounting as a temporary
|
|
|
+ file system:</para>
|
|
|
+
|
|
|
+<screen><userinput>if [ -h /dev/shm ]; then
|
|
|
+ rm -f $LFS/dev/shm
|
|
|
+ mkdir $LFS/dev/shm
|
|
|
+fi
|
|
|
+
|
|
|
+mount -vt tmpfs shm $LFS/dev/shm</userinput></screen>
|
|
|
+
|
|
|
</sect2>
|
|
|
|
|
|
</sect1>
|