summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-08-20 18:42:15 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-08-20 18:53:47 (EDT)
commit66c0f09824c4ad377751652133ff66c230c8251e (patch)
treede42ecd58ed5f045ad644fe539f8c66930a681f3
parentd17e9091697cf286b9e44b168c693a21c05f7f97 (diff)
downloadpc-inst-66c0f09824c4ad377751652133ff66c230c8251e.zip
pc-inst-66c0f09824c4ad377751652133ff66c230c8251e.tar.gz
pc-inst-66c0f09824c4ad377751652133ff66c230c8251e.tar.bz2
alsvid3: Override APT sources in conf file
Switch from httpredir.debian.org to deb.debian.org: https://wiki.debian.org/DebianGeoMirror https://lists.debian.org/debian-mirrors/2017/02/msg00000.html And add bullseye-backports-debug.
-rw-r--r--hosts/alsvid3/conf13
-rw-r--r--hosts/alsvid3/postinst14
2 files changed, 14 insertions, 13 deletions
diff --git a/hosts/alsvid3/conf b/hosts/alsvid3/conf
index f8aac3f..1d2edd0 100644
--- a/hosts/alsvid3/conf
+++ b/hosts/alsvid3/conf
@@ -18,6 +18,19 @@ extra_pkgs='
linux-image-amd64
sysvinit-core
'
+apt_sources='
+ deb http://deb.debian.org/debian bullseye main
+ deb-src http://deb.debian.org/debian bullseye main
+
+ deb http://security.debian.org/debian-security bullseye-security main
+ deb-src http://security.debian.org/debian-security bullseye-security main
+
+ deb http://deb.debian.org/debian bullseye-backports main
+ deb-src http://deb.debian.org/debian bullseye-backports main
+
+ deb http://deb.debian.org/debian-debug bullseye-debug main
+ deb http://deb.debian.org/debian-debug bullseye-backports-debug main
+ '
locale='en_US'
supported_locales='en_US.UTF-8 en_DK.UTF-8'
diff --git a/hosts/alsvid3/postinst b/hosts/alsvid3/postinst
index 89858df..2767e60 100644
--- a/hosts/alsvid3/postinst
+++ b/hosts/alsvid3/postinst
@@ -30,19 +30,7 @@ cat >"${target}/boot/grub/libreboot_grub.cfg" <<-EOF
# Disable mpd service.
in_target update-rc.d mpd disable
-# Add "deb-src" line and backports.
-cat >"${target}/etc/apt/sources.list" <<-EOF
- deb http://httpredir.debian.org/debian jessie main
- deb-src http://httpredir.debian.org/debian jessie main
- EOF
-cat >"${target}/etc/apt/sources.list.d/jessie-backports.list" <<-EOF
- deb http://httpredir.debian.org/debian jessie-backports main
- deb-src http://httpredir.debian.org/debian jessie-backports main
- EOF
-cat >"${target}/etc/apt/sources.list.d/jessie-security.list" <<-EOF
- deb http://security.debian.org/debian-security jessie/updates main
- deb-src http://security.debian.org/debian-security jessie/updates main
- EOF
+# Install backported packages.
in_target apt-get update || return 1
in_target apt-get -q -y install midori || return 1
in_target apt-get -q -y install youtube-dl/jessie-backports || return 1