diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-01-20 18:30:23 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-01-20 18:30:23 +0000 |
commit | 9802067cc454f516768ab59a6ba976a9d3b0dcba (patch) | |
tree | 6f548f0d6b99f99d7998f986068a78408a2f51e0 /baserock-bootstrap | |
parent | bb39a30a18f9901acb62b2257bb1d7cfae83e144 (diff) | |
download | morph-9802067cc454f516768ab59a6ba976a9d3b0dcba.tar.gz |
Make sure the do-chroot script unmounts proc, sys in case of failure
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index a8ce79d5..12d1d4f9 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -800,6 +800,7 @@ EOF local do_chroot="$BASEDIR/do-chroot" if [ ! -e "$do_chroot" ]; then $HOST_CAT >"$do_chroot" <<EOF +trap "umount $LFS/proc $LFS/sys" EXIT set -e set -x if ! mount | grep "$LFS/proc" >/dev/null |