aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2018-08-21 19:53:49 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2018-08-21 19:53:49 +0000
commit16334b46d7a751f25b723c7918b0da612ae0d7c7 (patch)
treed1b1655b988a22f4b68109a77f9c070eec7fa3f4 /bootscripts
parentdf5a35d70b4e1aad7939207e5c6cf85f457a3302 (diff)
Tweak the Makefile
Minor change to mountfs boot script when stopping. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11455 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'bootscripts')
-rw-r--r--bootscripts/lfs/init.d/mountfs2
1 files changed, 2 insertions, 0 deletions
diff --git a/bootscripts/lfs/init.d/mountfs b/bootscripts/lfs/init.d/mountfs
index 2509f30de..ee7dcf5f7 100644
--- a/bootscripts/lfs/init.d/mountfs
+++ b/bootscripts/lfs/init.d/mountfs
@@ -54,6 +54,8 @@ case "${1}" in
stop)
# Don't unmount virtual file systems like /run
log_info_msg "Unmounting all other currently mounted file systems..."
+ # Ensure any loop devies are removed
+ losetup -D
umount --all --detach-loop --read-only \
--types notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts >/dev/null
evaluate_retval