diff options
author | Neil Williams <codehelp@debian.org> | 2016-07-17 15:25:06 +0100 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2016-07-17 15:25:06 +0100 |
commit | 29c91afaec164c9ed6d2f7e237c7fcb2748c77fc (patch) | |
tree | dba56e40cc45e5234d4577771e19a9c8715589ef /common | |
parent | bc0451cfe308f33a437cac9c47e9c0ee9d51f4c8 (diff) | |
download | vmdebootstrap-29c91afaec164c9ed6d2f7e237c7fcb2748c77fc.tar.gz |
Extend prepare_apt_source to use a specified local mirror.
Diffstat (limited to 'common')
-rw-r--r-- | common/customise.lib | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/customise.lib b/common/customise.lib index a62c64a..3569acc 100644 --- a/common/customise.lib +++ b/common/customise.lib @@ -54,11 +54,11 @@ EOF chmod a+x ${rootdir}/usr/sbin/policy-rc.d } -# FIXME: pass the replacement mirror +# ensure you pass the replacement mirror and suite prepare_apt_source() { # handle the apt source mv ${rootdir}/etc/apt/sources.list.d/base.list ${rootdir}/etc/apt/ - echo "deb http://mirror/debian/ ${SUITE} main contrib non-free" > ${rootdir}/etc/apt/sources.list + echo "deb $1 $2 main contrib non-free" > ${rootdir}/etc/apt/sources.list chroot ${rootdir} apt update } |