summaryrefslogtreecommitdiff
path: root/baserock-bootstrap
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-22 11:02:20 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-22 11:02:20 +0000
commite2320f36b0b87d099f3a348d5e23b6997b65d72c (patch)
tree0b29d38a238052a6e76b4c00aa5838f1c3431fc0 /baserock-bootstrap
parent3a3272b26f61cad705f59ac5a4cc9407221b02f4 (diff)
downloadmorph-e2320f36b0b87d099f3a348d5e23b6997b65d72c.tar.gz
Optionally do a snapshot of tree
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-xbaserock-bootstrap7
1 files changed, 7 insertions, 0 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap
index 95c848e7..c31baa0c 100755
--- a/baserock-bootstrap
+++ b/baserock-bootstrap
@@ -7,6 +7,7 @@ set -u
LFS="$(pwd)/tree"
sources="$LFS/sources"
tools="$LFS/tools"
+SNAPSHOT="$1"
JOBS=6
@@ -813,6 +814,12 @@ pass1_git
#pass1_strip_tools
#pass1_fix_perms
+if [ "$SNAPSHOT" = yes ]
+then
+ cd "$LFS/.."
+ tar -caf tree-snapshot.tar.gz tree
+fi
+
pass2_get_sources
pass2_prepare_for_chroot
pass2_build_with_morph_in_chroot