Skip to content

Commit

Permalink
Add bookworm-backports and install firmware packages from there
Browse files Browse the repository at this point in the history
New hardware requires newer firmware packages too. This especially
applies to wifi in Novacustom V5xx and Framework laptops.

Fixes QubesOS/qubes-issues#9522
  • Loading branch information
marmarek committed Oct 21, 2024
1 parent b70265d commit a33910f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
14 changes: 14 additions & 0 deletions template_debian/distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,20 @@ function updateDebianSourceList() {
if ! grep -r -q "$source" "${list}"*; then
echo -e "$source\n" >> "${list}"
fi
if [ "${DIST_CODENAME}" = "bookworm" ]; then
# make bookworm-backports available for newer firmware packages,
# but it needs to be explicitly selected for a package to be installed
# from there
source="deb https://deb.debian.org/debian ${DEBIANVERSION}-backports main contrib $nonfree"
if ! grep -r -q "$source" "${list}"*; then
echo -e "$source\n" >> "${list}"
fi

source="#deb-src https://deb.debian.org/debian ${DEBIANVERSION}-backports main contrib $nonfree"
if ! grep -r -q "$source" "${list}"*; then
echo -e "$source\n" >> "${list}"
fi
fi
}

# ==============================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ info ' Installing firmware'
#### '----------------------------------------------------------------------
chroot_cmd sh -c 'echo "firmware-ipw2x00 firmware-ipw2x00/license/accepted select true" |debconf-set-selections'
read -r -a packages <<<"atmel-firmware firmware-ath9k-htc firmware-atheros firmware-brcm80211 firmware-ipw2x00 firmware-iwlwifi firmware-misc-nonfree firmware-ralink firmware-realtek firmware-zd1211"
aptInstall "${packages[@]}"
if [ "${DIST_CODENAME}" = "bookworm" ]; then
aptInstall -t ${DIST_CODENAME}-backports
else
aptInstall "${packages[@]}"
fi

0 comments on commit a33910f

Please sign in to comment.