From ec88aaf14960518e97313c4e58fc95eb0f98eb39 Mon Sep 17 00:00:00 2001 From: Kreyren Date: Fri, 3 Feb 2023 12:01:02 +0000 Subject: [PATCH] `bookworm`: has new/separate repos for non-free-firmware (#4801) [cherry-pick] - "Debian moved the non-free firmware into it's own sub-repository" --- lib/functions/rootfs/distro-specific.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/functions/rootfs/distro-specific.sh b/lib/functions/rootfs/distro-specific.sh index 4c00429fcf..4b89385b31 100644 --- a/lib/functions/rootfs/distro-specific.sh +++ b/lib/functions/rootfs/distro-specific.sh @@ -99,7 +99,7 @@ function create_sources_list() { EOF ;; - bullseye | bookworm | trixie) + bullseye | trixie) cat <<- EOF > "${basedir}"/etc/apt/sources.list deb http://${DEBIAN_MIRROR} $release main contrib non-free #deb-src http://${DEBIAN_MIRROR} $release main contrib non-free @@ -115,6 +115,23 @@ function create_sources_list() { EOF ;; + bookworm) + # non-free firmware in bookworm and later has moved from the non-free archive component to a new non-free-firmware component (alongside main/contrib/non-free). This was implemented on 2023-01-27, see also https://lists.debian.org/debian-boot/2023/01/msg00235.html + cat <<- EOF > "${basedir}"/etc/apt/sources.list + deb http://${DEBIAN_MIRROR} $release main contrib non-free non-free-firmware + #deb-src http://${DEBIAN_MIRROR} $release main contrib non-free non-free-firmware + + deb http://${DEBIAN_MIRROR} ${release}-updates main contrib non-free non-free-firmware + #deb-src http://${DEBIAN_MIRROR} ${release}-updates main contrib non-free non-free-firmware + + deb http://${DEBIAN_MIRROR} ${release}-backports main contrib non-free non-free-firmware + #deb-src http://${DEBIAN_MIRROR} ${release}-backports main contrib non-free non-free-firmware + + deb http://${DEBIAN_SECURTY} ${release}-security main contrib non-free non-free-firmware + #deb-src http://${DEBIAN_SECURTY} ${release}-security main contrib non-free non-free-firmware + EOF + ;; + sid) # sid is permanent unstable development and has no such thing as updates or security cat <<- EOF > "${basedir}"/etc/apt/sources.list deb http://${DEBIAN_MIRROR} $release main contrib non-free