From 0a4134d8773b68f6f714017a33c8aa3687d0e833 Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Sun, 12 Feb 2023 13:01:55 +0100
Subject: New archive area "non-free-firmware"

---
 config/chroot_local-hooks/00-sources.list         | 5 +++++
 config/chroot_local-includes/etc/apt/sources.list | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/config/chroot_local-hooks/00-sources.list b/config/chroot_local-hooks/00-sources.list
index d81ce7c..dd00e5a 100755
--- a/config/chroot_local-hooks/00-sources.list
+++ b/config/chroot_local-hooks/00-sources.list
@@ -26,6 +26,11 @@ case "${LB_DISTRIBUTION}" in
     wheezy|jessie|stretch|buster) sed -i -e "s|-security||g" /etc/apt/sources.list ;;
 esac
 
+# since bookworm we have the new component "non-free-firmware" in archive
+case "${LB_DISTRIBUTION}" in
+    wheezy|jessie|stretch|buster|bullseye) sed -i -e "s|non-free-firmware||g" /etc/apt/sources.list ;;
+esac
+
 # fix for archive
 if [ "$LB_DISTRIBUTION" = "wheezy" ]; then
    sed -i -e "s#${LB_MIRROR_CHROOT}#http://archive.debian.org/debian#g" /etc/apt/sources.list
diff --git a/config/chroot_local-includes/etc/apt/sources.list b/config/chroot_local-includes/etc/apt/sources.list
index 8f05a89..436a391 100644
--- a/config/chroot_local-includes/etc/apt/sources.list
+++ b/config/chroot_local-includes/etc/apt/sources.list
@@ -3,8 +3,8 @@
 # CDROMs are managed through the apt-cdrom tool.
 
 # Debian @DISTRIBUTION@
-deb @MIRRORDUMMY@ @DISTRIBUTION@ main contrib non-free
-deb-src @MIRRORDUMMY@ @DISTRIBUTION@ main contrib non-free
+deb @MIRRORDUMMY@ @DISTRIBUTION@ main contrib non-free non-free-firmware
+deb-src @MIRRORDUMMY@ @DISTRIBUTION@ main contrib non-free non-free-firmware
 
 # Debian @DISTRIBUTION@ Updates
 deb http://security.debian.org @DISTRIBUTION@-security/updates main contrib non-free
-- 
cgit v1.0