summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-01-19 15:13:09 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-01-19 15:13:09 +0000
commit49515a30482c623708f73ed7abe1ed7bf35d7bca (patch)
treeebe80a775134d53a93da08e17f2b673c7bdd8298 /run-bootstrap-in-chroot
parent399ae5da1438e59fa0685a4688330a2ca503fa51 (diff)
downloadmorph-49515a30482c623708f73ed7abe1ed7bf35d7bca.tar.gz
Improve error recovery and cleanup the chroot dir at startup
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-xrun-bootstrap-in-chroot3
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 \