summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
diff options
context:
space:
mode:
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-xrun-bootstrap-in-chroot7
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