Compare commits

...

3 Commits

Author SHA1 Message Date
Bohan Yang 5cdd2d6f5b
Merge pull request #148 from cha0sCat/master 1 week ago
Anonymous 2c028de296 fix: only add backports if has backports 1 week ago
Anonymous a49899d060 fix: debian 11 backports is in archive and can block installation 1 week ago
  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