From ce035ab5792edf5501703126fd0128d1c1fe7abb Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 21 Jan 2018 00:33:19 -0500 Subject: logi1: Override APT sources in conf file And add security archive. --- (limited to 'hosts') 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 || \ -- cgit v0.9.1