From bde421e48d7a25e38fb4a6114bd2a1ca1506ea30 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 2 Oct 2022 16:12:26 +0800 Subject: [PATCH] reboot: fix /dev/shm unmounting command /dev/shm may be a mount point, or a symlink. --- chapter11/reboot.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ Then unmount the virtual file systems: umount -v $LFS/dev/pts -umount -v $LFS/dev/shm +mountpoint -q $LFS/dev/shm && umount $LFS/dev/shm umount -v $LFS/dev umount -v $LFS/run umount -v $LFS/proc