diff options
author | P. J. McDermott <pj@pehjota.net> | 2018-01-21 00:33:19 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2018-01-21 00:36:00 (EST) |
commit | ce035ab5792edf5501703126fd0128d1c1fe7abb (patch) | |
tree | b0e46ed279c724516a426a07c46a6084e5997074 /hosts/logi1 | |
parent | 38bca937ff1c037ce09a3be2a5b51cef122a56a1 (diff) | |
download | pc-inst-ce035ab5792edf5501703126fd0128d1c1fe7abb.zip pc-inst-ce035ab5792edf5501703126fd0128d1c1fe7abb.tar.gz pc-inst-ce035ab5792edf5501703126fd0128d1c1fe7abb.tar.bz2 |
logi1: Override APT sources in conf file
And add security archive.
Diffstat (limited to 'hosts/logi1')
-rw-r--r-- | hosts/logi1/conf | 12 | ||||
-rw-r--r-- | hosts/logi1/postinst | 14 |
2 files changed, 13 insertions, 13 deletions
diff --git a/hosts/logi1/conf b/hosts/logi1/conf index cf2d02e..6ff86c1 100644 --- a/hosts/logi1/conf +++ b/hosts/logi1/conf @@ -19,6 +19,18 @@ extra_pkgs=' linux-image-amd64 sysvinit-core ' +apt_sources=' + deb http://deb.debian.org/debian stretch main + deb-src http://deb.debian.org/debian stretch main + + deb http://security.debian.org/debian-security stretch/updates main + deb-src http://security.debian.org/debian-security stretch/updates main + + deb http://deb.debian.org/debian stretch-backports main + deb-src http://deb.debian.org/debian stretch-backports main + + deb http://deb.debian.org/debian-debug stretch-debug main + ' locale='en_US' supported_locales='en_US.UTF-8 en_DK.UTF-8' diff --git a/hosts/logi1/postinst b/hosts/logi1/postinst index 48981e5..cd487dc 100644 --- a/hosts/logi1/postinst +++ b/hosts/logi1/postinst @@ -38,19 +38,7 @@ cat >"${target}/etc/modules" <<-EOF # Disable mpd service. in_target update-rc.d mpd disable -# Add "deb-src" line as well as backports and debug symbols archives. -cat >"${target}/etc/apt/sources.list" <<-EOF - deb http://deb.debian.org/debian stretch main - deb-src http://deb.debian.org/debian stretch main - EOF -cat >"${target}/etc/apt/sources.list.d/stretch-backports.list" <<-EOF - deb http://deb.debian.org/debian stretch-backports main - deb-src http://deb.debian.org/debian stretch-backports main - EOF -cat >"${target}/etc/apt/sources.list.d/stretch-debug.list" <<-EOF - deb http://deb.debian.org/debian-debug stretch-debug main - EOF -in_target apt-get update || return 1 +# Install backported packages. in_target apt-get -q -y install kicad/stretch-backports || return 1 in_target apt-get -q -y install tor/stretch-backports torsocks || return 1 in_target apt-get -q -y install libglib2.0-0-dbgsym libgtk-3-0-dbgsym || \ |