diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-17 16:07:16 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-17 16:07:16 +0000 |
commit | 0056dcba6d0ab2ed5e2c92b0dbaf4b0de76e0ac5 (patch) | |
tree | ac7bfffdb0a261707c9e1564d2a1ca432ea9372c /baserock-bootstrap | |
parent | aa587a40703715ce36c910fb08cb45988430f4a7 (diff) | |
download | morph-0056dcba6d0ab2ed5e2c92b0dbaf4b0de76e0ac5.tar.gz |
Remove unnecessary stuff from passes
This is to make snapshots of them be small. pass2a and 2b pretty
much halved in size.
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index b97be062..090a71a1 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -715,6 +715,13 @@ pass1_fix_perms() } +pass1_cleanup_at_end() +{ + echo "Removing unnecessary stuff at the end of pass1" + rm -rf "$LFS/tree/sources" +} + + pass2_get_sources() { echo "Get Baserock sources" @@ -930,6 +937,21 @@ EOF } +pass2a_cleanup_at_end() +{ + echo "Remove unnecessary stuff at the end of pass2a" + rm -f "$LFS/baserock/cache/gits/"*.bndl +} + + +pass2b_cleanup_at_end() +{ + echo "Remove unnecessary stuff at the end of pass2b" + rm -rf "$LFS/tools" + rm -f "$LFS"/baserock/cache/*.chunk.* +} + + pass3_remove_tools() { echo "Removing $LFS/tools" @@ -1040,15 +1062,18 @@ case "$buildwhat" in pass1_git #pass1_strip_tools #pass1_fix_perms + pass1_cleanup_at_end ;; pass2a) pass2_get_sources pass2_prepare_for_chroot pass2_get_sources_with_morph_in_chroot + pass2a_cleanup_at_end ;; pass2b) pass2_build_with_morph_in_chroot #pass2_build_devel_system_outside_chroot + pass2b_cleanup_at_end ;; pass3) pass3_remove_tools |