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.
This commit is contained in:
Matthijs Kooijman 2012-01-10 21:36:11 +01:00
parent 58209e8bd8
commit 02b9dc3ea9
1 changed files with 1 additions and 1 deletions

View File

@ -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