Speed up package installation (especially on spinning disks)

This commit is contained in:
Olaf Meeuwissen 2017-08-18 12:23:36 +09:00
parent b636a469a2
commit 18399c5561
1 changed files with 14 additions and 0 deletions

14
scripts/tweak-dpkg-config Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh -eu
# tweak-dpkg-config -- for use in a Docker image
# Copyright (C) 2017 Olaf Meeuwissen
#
# License: GPL-3.0+
cfg=/etc/dpkg/dpkg.cfg.d
cat > $cfg/docker-no-sync <<EOF
force-unsafe-io
EOF
chmod 0644 $cfg/docker-no-sync
rm $0