summaryrefslogtreecommitdiff
path: root/stage0
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-11-28 23:20:25 +0000
committerDave Hibberd <hibby@debian.org>2026-11-28 23:20:25 +0000
commit83f0edf4dbb2f78ac787caa0f51f288f64ba2ab2 (patch)
treee6dd6684d7c4cb54f2e41a565e5c1a5a1f8c2e65 /stage0
parent69edd9d097958a8c19f84ba1d195a61a03508d42 (diff)
tighten up backports pin with hibbian-apt-config
Diffstat (limited to 'stage0')
-rwxr-xr-xstage0/00-configure-apt/00-run.sh8
-rw-r--r--stage0/00-configure-apt/files/hibbian-apt-config.debbin0 -> 3188 bytes
2 files changed, 6 insertions, 2 deletions
diff --git a/stage0/00-configure-apt/00-run.sh b/stage0/00-configure-apt/00-run.sh
index fb2c4cd..ce0a605 100755
--- a/stage0/00-configure-apt/00-run.sh
+++ b/stage0/00-configure-apt/00-run.sh
@@ -1,12 +1,12 @@
#!/bin/bash -e
true > "${ROOTFS_DIR}/etc/apt/sources.list"
+rm -f "${ROOTFS_DIR}/etc/apt/preferences.d/backports-pref"
install -m 644 files/debian.sources "${ROOTFS_DIR}/etc/apt/sources.list.d/"
install -m 644 files/raspi.sources "${ROOTFS_DIR}/etc/apt/sources.list.d/"
-install -m 644 files/backports-pref "${ROOTFS_DIR}/etc/apt/preferences.d/"
+install -m 644 files/hibbian-apt-config.deb "${ROOTFS_DIR}/tmp/hibbian-apt-config.deb"
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/debian.sources"
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/raspi.sources"
-sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/preferences.d/backports-pref"
if [ -n "$APT_PROXY" ]; then
install -m 644 files/51cache "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
@@ -30,6 +30,10 @@ on_chroot <<- \EOF
elif [ "$ARCH" = "arm64" ]; then
dpkg --add-architecture armhf
fi
+
+ dpkg -i /tmp/hibbian-apt-config.deb
+ rm -f /tmp/hibbian-apt-config.deb
+
apt-get update
apt-get dist-upgrade -y
EOF
diff --git a/stage0/00-configure-apt/files/hibbian-apt-config.deb b/stage0/00-configure-apt/files/hibbian-apt-config.deb
new file mode 100644
index 0000000..90ed5b5
--- /dev/null
+++ b/stage0/00-configure-apt/files/hibbian-apt-config.deb
Binary files differ