From 40690e1f21f7d780f7202277f05e03967d3f4012 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 21 May 2012 01:47:41 +0000 Subject: 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 --- chapter06/kernfs.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'chapter06/kernfs.xml') 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 Now mount the remaining virtual kernel filesystems: 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 + In some host systems, /dev/shm is a + symbolic link to /run/shm. + Inside a chroot envirnment, this symbolic link needs to be + changed to a normal directory before mounting as a temporary + file system: + +if [ -h /dev/shm ]; then + rm -f $LFS/dev/shm + mkdir $LFS/dev/shm +fi + +mount -vt tmpfs shm $LFS/dev/shm + -- cgit v1.2.3-54-g00ecf