diff options
Diffstat (limited to 'chapter09')
-rw-r--r-- | chapter09/reboot.xml | 10 |
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> |