summaryrefslogtreecommitdiffstats
path: root/inst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-01-21 00:28:18 (EST)
committer P. J. McDermott <pj@pehjota.net>2018-01-21 00:28:18 (EST)
commit38bca937ff1c037ce09a3be2a5b51cef122a56a1 (patch)
tree24ad2bc81a27ae5d04e9f506272768b42e035a9a /inst
parent4cdf76994f2e1a57e596d889d31dd77db8126886 (diff)
downloadpc-inst-38bca937ff1c037ce09a3be2a5b51cef122a56a1.zip
pc-inst-38bca937ff1c037ce09a3be2a5b51cef122a56a1.tar.gz
pc-inst-38bca937ff1c037ce09a3be2a5b51cef122a56a1.tar.bz2
do_apt_update(): Support overriding APT sources
Diffstat (limited to 'inst')
-rwxr-xr-xinst4
1 files changed, 4 insertions, 0 deletions
diff --git a/inst b/inst
index d4912c9..1164c43 100755
--- a/inst
+++ b/inst
@@ -269,6 +269,10 @@ do_apt_update()
{
info 'Downloading package lists'
+ cat >"${target}/etc/apt/sources.list" <<-EOF
+ ${apt_sources}
+ EOF
+
in_target apt-get update || return 1
return 0