summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-04-25 15:22:34 +0200
committerHolger Levsen <holger@layer-acht.org>2014-04-25 15:22:34 +0200
commit7d7c88c83315e9ebfc01f835a8af29dcf5317510 (patch)
treedcd2976a8f1980c98448222f9f542fe10297ba16 /bin
parent28dc4b53916f313592712bf15e4956f3f733160d (diff)
downloadjenkins.debian.net-7d7c88c83315e9ebfc01f835a8af29dcf5317510.tar.xz
use unsafe-io in all (s)chroots
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chroot-installation.sh3
-rwxr-xr-xbin/chroot-run.sh2
-rwxr-xr-xbin/schroot-create.sh4
3 files changed, 9 insertions, 0 deletions
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