summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-13 10:21:02 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-13 10:21:02 +0000
commitcfa298f160a764676594de80a8324a6dff50f465 (patch)
treef3202dbcd4608332576d64c9a78fbd75682b89b1 /run-bootstrap-in-chroot
parente0fb97f08156af97ec2341ec8061fe514ae358e5 (diff)
downloadmorph-cfa298f160a764676594de80a8324a6dff50f465.tar.gz
Always (re-)create the do-squeeze-chroot script
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-xrun-bootstrap-in-chroot6
1 files changed, 2 insertions, 4 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot
index 7485b7b0..397a0c14 100755
--- a/run-bootstrap-in-chroot
+++ b/run-bootstrap-in-chroot
@@ -21,8 +21,7 @@ else
snapshotdir="$1"
fi
-if [ ! -x ./do-squeeze-chroot ]; then
- cat >"./do-squeeze-chroot" <<EOF
+cat >"./do-squeeze-chroot" <<EOF
#!/bin/sh
if mount -t proc proc "$dir/proc"; then
if mount -t sysfs sysfs "$dir/sys"; then
@@ -32,8 +31,7 @@ if mount -t proc proc "$dir/proc"; then
umount "$dir/proc"
fi
EOF
- chmod +x "./do-squeeze-chroot"
-fi
+chmod +x "./do-squeeze-chroot"
if ([ "x$DEBIAN_MIRROR" = x ] && echo DEBIAN_MIRROR is unspecified >&2) ||
([ "x$GIT_BUNDLES" = x ] && echo GIT_BUNDLES is unspecified >&2) ||