From 8f2877c806186511611017395d6f87cd00392adf Mon Sep 17 00:00:00 2001 From: "Hongli Lai (Phusion)" Date: Sat, 17 Jan 2015 14:32:41 +0100 Subject: [PATCH] Do not set APT's force-unsafe-io option because the latest ubuntu image already does that --- image/prepare.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/image/prepare.sh b/image/prepare.sh index ef49700..5e5d188 100755 --- a/image/prepare.sh +++ b/image/prepare.sh @@ -4,7 +4,9 @@ source /build/buildconfig set -x ## Temporarily disable dpkg fsync to make building faster. -echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/02apt-speedup +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/