From 801f1f62b09c68a42c078b3a619539456b160f45 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 12 Apr 2016 23:04:42 +0200 Subject: Umount LIVE_ROOTDIR's sub-mounts properly on emergency cleanup. --- make_slackware_live.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 701a0df..f3f82d7 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -205,6 +205,9 @@ cleanup() { # Clean up by unmounting our loopmounts, deleting tempfiles: echo "--- Cleaning up the staging area..." sync + umount ${LIVE_ROOTDIR}/sys 2>${DBGOUT} || true + umount ${LIVE_ROOTDIR}/proc 2>${DBGOUT} || true + umount ${LIVE_ROOTDIR}/dev 2>${DBGOUT} || true umount ${LIVE_ROOTDIR} 2>${DBGOUT} || true # Need to umount the squashfs modules too: umount ${LIVE_WORK}/*_$$ 2>${DBGOUT} || true -- cgit v1.2.3