From 82862ec7f78f4bf9ca4f62d4bfdf675dcfc7c8e6 Mon Sep 17 00:00:00 2001 From: "Hongli Lai (Phusion)" Date: Fri, 8 Jul 2016 20:09:24 +0200 Subject: [PATCH] Do not set the APT force-unsafe-io flag Docker already does this for us. Closes GH-265. --- image/cleanup.sh | 1 - image/prepare.sh | 5 ----- 2 files changed, 6 deletions(-) diff --git a/image/cleanup.sh b/image/cleanup.sh index c4216e5..d954a47 100755 --- a/image/cleanup.sh +++ b/image/cleanup.sh @@ -7,6 +7,5 @@ apt-get clean rm -rf /bd_build rm -rf /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/* -rm -f /etc/dpkg/dpkg.cfg.d/02apt-speedup rm -f /etc/ssh/ssh_host_* diff --git a/image/prepare.sh b/image/prepare.sh index f0512d4..80d73c2 100755 --- a/image/prepare.sh +++ b/image/prepare.sh @@ -3,11 +3,6 @@ set -e source /bd_build/buildconfig set -x -## Temporarily disable dpkg fsync to make building faster. -if [[ ! -e /etc/dpkg/dpkg.cfg.d/docker-apt-speedup ]]; then - echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup -fi - ## Prevent initramfs updates from trying to run grub and lilo. ## https://journal.paul.querna.org/articles/2013/10/15/docker-ubuntu-on-rackspace/ ## http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594189