Merge pull request #148 from cha0sCat/master

fix: debian 11 backports is in archive and can block installation
master
Bohan Yang 1 week ago committed by GitHub
commit 5cdd2d6f5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      debi.sh

@ -215,9 +215,12 @@ has_cloud_kernel() {
# Returns 0 if available, 1 if not
has_backports() {
case $suite in
buster|bullseye|oldoldstable|bookworm|oldstable|trixie|stable|forky|testing) return
bookworm|oldstable|trixie|stable|forky|testing) return
esac
# buster|bullseye|oldoldstable DO have backports, but it's in archive.debian.org now
# considering mirrors support varies and the code complexity we must accommodate, we just treat them as no backports available
warn "No backports kernel is available for $suite"
return 1
@ -591,7 +594,7 @@ apt_components=main
[ "$apt_non_free_firmware" = true ] && apt_components="$apt_components non-free-firmware"
apt_services=updates
[ "$apt_backports" = true ] && apt_services="$apt_services, backports"
[ "$apt_backports" = true ] && has_backports && apt_services="$apt_services, backports"
installer_directory="/boot/debian-$suite"

Loading…
Cancel
Save