summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgenerate-recipe.py3
-rw-r--r--raspi_master.yaml5
2 files changed, 6 insertions, 2 deletions
diff --git a/generate-recipe.py b/generate-recipe.py
index 5f24df2..c72aee1 100755
--- a/generate-recipe.py
+++ b/generate-recipe.py
@@ -56,8 +56,10 @@ else:
# ยน https://www.debian.org/vote/2022/vote_003
if suite == 'bookworm':
firmware_component = 'non-free-firmware'
+ firmware_component_old = 'non-free'
else:
firmware_component = 'non-free'
+ firmware_component_old = ''
# Extra wireless firmware:
if version != '2':
@@ -170,6 +172,7 @@ with open('raspi_master.yaml', 'r') as in_file:
.replace('__RELEASE__', suite) \
.replace('__ARCH__', arch) \
.replace('__FIRMWARE_COMPONENT__', firmware_component) \
+ .replace('__FIRMWARE_COMPONENT_OLD__', firmware_component_old) \
.replace('__LINUX_IMAGE__', linux) \
.replace('__DTB__', dtb) \
.replace('__SECURITY_SUITE__', security_suite) \
diff --git a/raspi_master.yaml b/raspi_master.yaml
index 290a476..8973b23 100644
--- a/raspi_master.yaml
+++ b/raspi_master.yaml
@@ -46,12 +46,13 @@ steps:
components:
- main
- __FIRMWARE_COMPONENT__
+ - __FIRMWARE_COMPONENT_OLD__
unless: rootfs_unpacked
- create-file: /etc/apt/sources.list
contents: |+
- deb http://deb.debian.org/debian __RELEASE__ main __FIRMWARE_COMPONENT__
- deb http://security.debian.org/debian-security __SECURITY_SUITE__ main __FIRMWARE_COMPONENT__
+ deb http://deb.debian.org/debian __RELEASE__ main __FIRMWARE_COMPONENT__ __FIRMWARE_COMPONENT_OLD__
+ deb http://security.debian.org/debian-security __SECURITY_SUITE__ main __FIRMWARE_COMPONENT__ __FIRMWARE_COMPONENT_OLD__
__BACKPORTS__
unless: rootfs_unpacked