diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-05-21 01:47:41 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-05-21 01:47:41 +0000 |
commit | 40690e1f21f7d780f7202277f05e03967d3f4012 (patch) | |
tree | 92063529b06b2412135f4f6993ae6e9d708f1578 /chapter06/kernfs.xml | |
parent | 7027db5944782f1d1330e49f4f7767ee75525137 (diff) |
Remove a bashism from the mountkernfs boot script.
Move the $time init capability from setclock to udev.
Remove and recreate $LFS/dev/shm in Section 6.2 if it is
a symbolic link.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9860 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/kernfs.xml')
-rw-r--r-- | chapter06/kernfs.xml | 14 |
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> |