aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/kernfs.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/kernfs.xml')
-rw-r--r--chapter06/kernfs.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/chapter06/kernfs.xml b/chapter06/kernfs.xml
index bb06cfec8..50128b76a 100644
--- a/chapter06/kernfs.xml
+++ b/chapter06/kernfs.xml
@@ -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>