summaryrefslogtreecommitdiffstats
path: root/bin/chroot-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/chroot-run.sh')
-rwxr-xr-xbin/chroot-run.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh
index 53b16003..cac853bc 100755
--- a/bin/chroot-run.sh
+++ b/bin/chroot-run.sh
@@ -47,7 +47,11 @@ bootstrap() {
echo force-unsafe-io > "$CHROOT_TARGET/etc/dpkg/dpkg.cfg.d/02dpkg-unsafe-io"
echo "Bootstraping $DISTRO into $CHROOT_TARGET now."
- sudo debootstrap $DISTRO $CHROOT_TARGET $MIRROR
+ if ! sudo debootstrap $DISTRO $CHROOT_TARGET $MIRROR; then
+ echo "debootstrap failed, slowing down"
+ sleep 1800
+ exit 1
+ fi
cat > $CHROOT_TARGET/tmp/chroot-prepare <<-EOF
$SCRIPT_HEADER