From 83f0edf4dbb2f78ac787caa0f51f288f64ba2ab2 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sat, 28 Nov 2026 23:20:25 +0000 Subject: tighten up backports pin with hibbian-apt-config --- stage0/00-configure-apt/00-run.sh | 8 ++++++-- stage0/00-configure-apt/files/hibbian-apt-config.deb | Bin 0 -> 3188 bytes 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 stage0/00-configure-apt/files/hibbian-apt-config.deb 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 Binary files /dev/null and b/stage0/00-configure-apt/files/hibbian-apt-config.deb differ -- cgit v1.2.3