diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-11-28 23:20:25 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-11-28 23:20:25 +0000 |
| commit | 83f0edf4dbb2f78ac787caa0f51f288f64ba2ab2 (patch) | |
| tree | e6dd6684d7c4cb54f2e41a565e5c1a5a1f8c2e65 | |
| parent | 69edd9d097958a8c19f84ba1d195a61a03508d42 (diff) | |
tighten up backports pin with hibbian-apt-config
| -rwxr-xr-x | stage0/00-configure-apt/00-run.sh | 8 | ||||
| -rw-r--r-- | stage0/00-configure-apt/files/hibbian-apt-config.deb | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..90ed5b5 --- /dev/null +++ b/stage0/00-configure-apt/files/hibbian-apt-config.deb |
