summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2014-04-25 15:01:16 +0200
committerHolger Levsen <holger@layer-acht.org>2014-04-25 15:13:09 +0200
commit28dc4b53916f313592712bf15e4956f3f733160d (patch)
tree9dfb586b68d43529722a6aca0d215b7daada6091
parent74e934b002081c8c34a99933c163fd894e90d147 (diff)
downloadjenkins.debian.net-28dc4b53916f313592712bf15e4956f3f733160d.tar.xz
chroot-run: dpkg --force-unsafe-io
This should kill most fsyncs and thus reduce io load.
-rwxr-xr-xbin/chroot-run.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh
index 05ede57e..6b38c369 100755
--- a/bin/chroot-run.sh
+++ b/bin/chroot-run.sh
@@ -56,6 +56,8 @@ export LC_ALL=C
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"
sudo debootstrap $DISTRO $CHROOT_TARGET $MIRROR
cat > $CHROOT_TARGET/tmp/chroot-prepare <<-EOF