summaryrefslogtreecommitdiff
path: root/baserock-bootstrap
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-01-20 11:56:18 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-01-20 11:56:18 +0000
commit4d58ab616e0e28f85f99b24bfc016eb8240300a5 (patch)
tree74f6bdf621d827990acb13cb2cbb2338c846d4fe /baserock-bootstrap
parent66e66578571d0ffbd046ecfff1668e28e859ed1e (diff)
downloadmorph-4d58ab616e0e28f85f99b24bfc016eb8240300a5.tar.gz
Change snapshot handling to be more flexible
Also, do snapshot of the debootstrapped thing too.
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-xbaserock-bootstrap9
1 files changed, 4 insertions, 5 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap
index d7b0d14e..deb23e27 100755
--- a/baserock-bootstrap
+++ b/baserock-bootstrap
@@ -10,7 +10,7 @@ LFS="$(pwd)/tree"
allsources="$LFS/../../lfs-tarballs"
sources="$LFS/sources"
tools="$LFS/tools"
-SNAPSHOT="${1:-'no'}"
+PASS1ONLY="${1:-'no'}"
CPUS=$(grep -c '^processor' /proc/cpuinfo)
JOBS=$(expr 2 '*' $CPUS)
@@ -914,11 +914,9 @@ pass1_git
#pass1_strip_tools
#pass1_fix_perms
-if [ "$SNAPSHOT" = yes ]
+if [ "$PASS1ONLY" = yes ]
then
- cd "$LFS/.."
- tar -caf tree-snapshot.tar tree
- echo "See snapshot in tree-snapshot.tar"
+ echo "Only doing pass1"
exit
fi
@@ -926,3 +924,4 @@ pass2_get_sources
pass2_prepare_for_chroot
pass2_build_with_morph_in_chroot
pass2_build_devel_system_outside_chroot
+