summaryrefslogtreecommitdiff
path: root/baserock-bootstrap
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-15 12:47:07 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-15 12:47:07 +0000
commit3e4e30a7ced58a166e74c8c41f3ee7d90c381ddb (patch)
tree97600d5746b9b26fa68ba828af304fdc9e288e60 /baserock-bootstrap
parent0485577e859e07ae05c81a4214a2a5a37761832f (diff)
downloadmorph-3e4e30a7ced58a166e74c8c41f3ee7d90c381ddb.tar.gz
Remove /tools for pass3
We're going to be building using only things from pass2, and /tools contains stuff built in pass1, so it needs to be removed.
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-xbaserock-bootstrap9
1 files changed, 8 insertions, 1 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap
index 34cfe697..9d97188c 100755
--- a/baserock-bootstrap
+++ b/baserock-bootstrap
@@ -891,6 +891,13 @@ EOF
}
+pass3_remove_tools()
+{
+ echo "Removing $LFS/tools"
+ $HOST_SUDO rm -rf "$LFS/tools"
+}
+
+
echo "Bootstrapping Baserock development environment"
echo "LFS_TGT=$LFS_TGT"
@@ -947,7 +954,7 @@ case "$buildwhat" in
#pass2_build_devel_system_outside_chroot
;;
pass3)
- echo "Pass3 not yet implemented, sorry" 1>&2
+ pass3_remove_tools
exit 1
;;
*) echo "Usage! (sorry, I'm unhelpful)" 1>&2