Merge "Add some speedups to dpkg"

This commit is contained in:
Jenkins 2014-12-10 19:45:34 +00:00 committed by Gerrit Code Review
commit 1273cd5532
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -eu
set -o pipefail
[ -n "$TARGET_ROOT" ]
sudo rm $TARGET_ROOT/etc/dpkg/dpkg.cfg.d/02apt-speedup
sudo rm $TARGET_ROOT/etc/apt/apt.conf.d/no-languages

View File

@ -0,0 +1,12 @@
#!/bin/bash
set -eu
set -o pipefail
[ -n "$TARGET_ROOT" ]
# During image build, sync calls are expensive overhead
echo 'force-unsafe-io' | sudo tee $TARGET_ROOT/etc/dpkg/dpkg.cfg.d/02apt-speedup > /dev/null
# and remove the translations, too
echo 'Acquire::Languages "none";' | sudo tee $TARGET_ROOT/etc/apt/apt.conf.d/no-languages > /dev/null