aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-10-02 16:12:26 +0800
committerXi Ruoyao <xry111@xry111.site>2022-10-02 16:12:26 +0800
commitbde421e48d7a25e38fb4a6114bd2a1ca1506ea30 (patch)
tree15bdc744583e668c5594f1492d9a7eaf28059bb9
parent8e0c191b9b6d35274b363b478a479c7dd4ed32e4 (diff)
reboot: fix /dev/shm unmounting command
/dev/shm may be a mount point, or a symlink.
-rw-r--r--chapter11/reboot.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter11/reboot.xml b/chapter11/reboot.xml
index 1d76fcc7a..809d9bb70 100644
--- a/chapter11/reboot.xml
+++ b/chapter11/reboot.xml
@@ -107,7 +107,7 @@
<para>Then unmount the virtual file systems:</para>
<screen><userinput>umount -v $LFS/dev/pts
-umount -v $LFS/dev/shm
+mountpoint -q $LFS/dev/shm &amp;&amp; umount $LFS/dev/shm
umount -v $LFS/dev
umount -v $LFS/run
umount -v $LFS/proc