From 7d7c88c83315e9ebfc01f835a8af29dcf5317510 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 25 Apr 2014 15:22:34 +0200 Subject: use unsafe-io in all (s)chroots --- bin/chroot-installation.sh | 3 +++ bin/chroot-run.sh | 2 ++ bin/schroot-create.sh | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index f8c82dee..921a9315 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -97,6 +97,9 @@ EOF } bootstrap() { + mkdir -p "$CHROOT_TARGET/etc/dpkg/dpkg.cfg.d" + echo force-unsafe-io > "$CHROOT_TARGET/etc/dpkg/dpkg.cfg.d/02dpkg-unsafe-io" + echo "Bootstraping $1 into $CHROOT_TARGET now." sudo debootstrap $1 $CHROOT_TARGET $MIRROR prepare_bootstrap $1 diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index 6b38c369..4d3555bb 100755 --- a/bin/chroot-run.sh +++ b/bin/chroot-run.sh @@ -58,6 +58,8 @@ export http_proxy=$http_proxy" bootstrap() { mkdir -p "$CHROOT_TARGET/etc/dpkg/dpkg.cfg.d" 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 cat > $CHROOT_TARGET/tmp/chroot-prepare <<-EOF diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index 44083136..76a7f389 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -58,6 +58,10 @@ fi export CURDIR=$(pwd) bootstrap() { + mkdir -p "$CHROOT_TARGET/etc/dpkg/dpkg.cfg.d" + 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 echo sudo -s <<-EOF -- cgit v1.2.3-70-g09d2