diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-01-19 15:13:09 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-01-19 15:13:09 +0000 |
commit | 49515a30482c623708f73ed7abe1ed7bf35d7bca (patch) | |
tree | ebe80a775134d53a93da08e17f2b673c7bdd8298 /run-bootstrap-in-chroot | |
parent | 399ae5da1438e59fa0685a4688330a2ca503fa51 (diff) | |
download | morph-49515a30482c623708f73ed7abe1ed7bf35d7bca.tar.gz |
Improve error recovery and cleanup the chroot dir at startup
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-x | run-bootstrap-in-chroot | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot index c8fad487..cdef9588 100755 --- a/run-bootstrap-in-chroot +++ b/run-bootstrap-in-chroot @@ -12,6 +12,9 @@ else fi mirror="http://192.168.1.185/debian" +umount "$dir/proc" || true +umount "$dir/sys" || true +rm -rf "$dir" mkdir "$dir" debootstrap \ |