aboutsummaryrefslogtreecommitdiffstats
path: root/chapter09
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2012-12-28 20:29:58 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2012-12-28 20:29:58 +0000
commit409e7c850fee6ae5f46ae4ec19327e671adbc92d (patch)
tree74df4218070224de5515c41c922945097793b730 /chapter09
parent21a60f0a73343cedd0f21d27e44be645a70d7951 (diff)
Fix the location for mounting /dev/shm inside chroot
when /dev/shm is a symlink. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10083 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter09')
-rw-r--r--chapter09/reboot.xml10
1 files changed, 9 insertions, 1 deletions
diff --git a/chapter09/reboot.xml b/chapter09/reboot.xml
index 78d7ac550..59a24d4d2 100644
--- a/chapter09/reboot.xml
+++ b/chapter09/reboot.xml
@@ -33,7 +33,15 @@
<para>Then unmount the virtual file systems:</para>
<screen><userinput>umount -v $LFS/dev/pts
-umount -v $LFS/dev/shm
+
+if [ -h $LFS/dev/shm ]; then
+ link=$(readlink $LFS/dev/shm)
+ umount -v $LFS/$link
+ unset link
+else
+ umount -v $LFS/dev/shm
+fi
+
umount -v $LFS/dev
umount -v $LFS/proc
umount -v $LFS/sys</userinput></screen>