diskimage-builder/elements/dpkg/root.d/99-trim-dpkg

13 lines
348 B
Bash
Executable File

#!/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