summaryrefslogtreecommitdiffstats
path: root/inst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-05-19 01:54:25 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-05-19 01:54:25 (EDT)
commit3afcfae2bca8358858de849af27e3457cbfe2953 (patch)
tree300c16cf60b2b59beee438d661fb08c6d4e7797f /inst
parent525e4a4f4e8a4eaadad268f9c471857b83bfb9aa (diff)
downloadpc-inst-3afcfae2bca8358858de849af27e3457cbfe2953.zip
pc-inst-3afcfae2bca8358858de849af27e3457cbfe2953.tar.gz
pc-inst-3afcfae2bca8358858de849af27e3457cbfe2953.tar.bz2
do_apt_update(): Support configuring /etc/apt/preferences
Diffstat (limited to 'inst')
-rwxr-xr-xinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/inst b/inst
index 5243c86..f9b97dd 100755
--- a/inst
+++ b/inst
@@ -273,6 +273,12 @@ do_apt_update()
${apt_sources}
EOF
+ case "${apt_preferences+set}" in 'set')
+ sed 's/^\t*//;' >"${target}/etc/apt/preferences" <<-EOF
+ ${apt_preferences}
+ EOF
+ esac
+
in_target apt-get update || return 1
in_target apt-get -q -y dist-upgrade || return 1
in_target apt-get clean || return 1