diff options
| author | hibby <hibby@debian.org> | 2026-04-26 16:24:44 +0100 |
|---|---|---|
| committer | hibby <hibby@debian.org> | 2026-04-26 16:24:44 +0100 |
| commit | 44f392288f3e8f9c36403e7b1899e01228edfde4 (patch) | |
| tree | dc3d64ba53d79dc62bb14607f817eda1d282a92e /stage0 | |
| parent | eac403ec221d93c5a189e39c337edb22e98d20a9 (diff) | |
Getting it all to tie together!
Diffstat (limited to 'stage0')
| -rwxr-xr-x | stage0/00-configure-apt/00-run.sh | 2 | ||||
| -rw-r--r-- | stage0/00-configure-apt/files/backports-pref | 3 | ||||
| -rw-r--r-- | stage0/00-configure-apt/files/debian.sources | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/stage0/00-configure-apt/00-run.sh b/stage0/00-configure-apt/00-run.sh index f3e95b0..fb2c4cd 100755 --- a/stage0/00-configure-apt/00-run.sh +++ b/stage0/00-configure-apt/00-run.sh @@ -3,8 +3,10 @@ true > "${ROOTFS_DIR}/etc/apt/sources.list" 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/" 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" diff --git a/stage0/00-configure-apt/files/backports-pref b/stage0/00-configure-apt/files/backports-pref new file mode 100644 index 0000000..e3810e4 --- /dev/null +++ b/stage0/00-configure-apt/files/backports-pref @@ -0,0 +1,3 @@ +Package: * +Pin: release n=RELEASE-backports +Pin-Priority: 500 diff --git a/stage0/00-configure-apt/files/debian.sources b/stage0/00-configure-apt/files/debian.sources index cabf3b5..d5f243f 100644 --- a/stage0/00-configure-apt/files/debian.sources +++ b/stage0/00-configure-apt/files/debian.sources @@ -1,6 +1,6 @@ Types: deb URIs: http://deb.debian.org/debian/ -Suites: RELEASE RELEASE-updates +Suites: RELEASE RELEASE-updates RELEASE-backports Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.pgp |
