From 409e7c850fee6ae5f46ae4ec19327e671adbc92d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 28 Dec 2012 20:29:58 +0000 Subject: 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 --- chapter09/reboot.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'chapter09') 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 @@ Then unmount the virtual file systems: 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 -- cgit v1.2.3-54-g00ecf