summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2012-01-10 21:36:11 +0100
committerMatthijs Kooijman <matthijs@stdin.nl>2012-01-10 21:54:58 +0100
commit02b9dc3ea97a470863ac4a6090aab02b3558bf0a (patch)
tree66defb3bd057cb1678e57b0994d7ffd8bb3599cb
parent58209e8bd8b7c159c64405cde9e127de54af293f (diff)
downloadvyos-live-build-02b9dc3ea97a470863ac4a6090aab02b3558bf0a.tar.gz
vyos-live-build-02b9dc3ea97a470863ac4a6090aab02b3558bf0a.zip
Unmount /root/config in case of error.
When there is an error, the Exit() handler unmounts filesystems within the chroot. This adds /root/config to the list used when /proc/mounts is not available.
-rwxr-xr-xfunctions/exit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/exit.sh b/functions/exit.sh
index 5152253db..8bf19aaac 100755
--- a/functions/exit.sh
+++ b/functions/exit.sh
@@ -29,7 +29,7 @@ Exit ()
umount ${DIRECTORY} > /dev/null 2>&1 || true
done
else
- for DIRECTORY in /dev/shm /dev/pts /dev /proc /selinux /sys
+ for DIRECTORY in /dev/shm /dev/pts /dev /proc /selinux /sys /root/config
do
umount -f chroot/${DIRECTORY} > /dev/null 2>&1 || true
done