diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-15 11:56:23 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-15 11:56:23 +0000 |
commit | 560060676733d95f5ac896c207f1bf4064f07076 (patch) | |
tree | 67c1b31374bbce81bffa22ce16dff8a7c493ea37 /run-bootstrap-in-chroot | |
parent | 7c2e37edce36ad0f6a23b4e6169d779f022a1aaa (diff) | |
download | morph-560060676733d95f5ac896c207f1bf4064f07076.tar.gz |
Make chroot snapshot also compressed
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-x | run-bootstrap-in-chroot | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot index 163ee63a..f6ca7f27 100755 --- a/run-bootstrap-in-chroot +++ b/run-bootstrap-in-chroot @@ -49,9 +49,10 @@ unmount_virtual "$dir" rm -rf "$dir" mkdir "$dir" -if "$snapshot" && [ -e "$snapshotdir/squeeze.tar" ] +chrootsnapshot="$snapshotdir/squeeze.tar" +if "$snapshot" && [ -e "$chrootsnapshot" ] then - tar -C "$dir" -xf "$snapshotdir/squeeze.tar" + tar -C "$dir" -xf "$chrootsnapshot" else debootstrap \ --include=build-essential,\ @@ -61,7 +62,7 @@ squeeze "$dir" "$DEBIAN_MIRROR" if "$snapshot" then - tar -caf "$snapshotdir/squeeze.tar" -C "$dir" . + tar -caf "$chrootsnapshot" -C "$dir" . fi fi |