diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2012-01-10 21:36:11 +0100 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2012-01-10 21:54:58 +0100 |
commit | 02b9dc3ea97a470863ac4a6090aab02b3558bf0a (patch) | |
tree | 66defb3bd057cb1678e57b0994d7ffd8bb3599cb /functions/exit.sh | |
parent | 58209e8bd8b7c159c64405cde9e127de54af293f (diff) | |
download | vyos-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.
Diffstat (limited to 'functions/exit.sh')
-rwxr-xr-x | functions/exit.sh | 2 |
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 |