Skip to content

Commit

Permalink
v8.21
Browse files Browse the repository at this point in the history
- dietpi-bookworm-upgrade | Mark all packages unhold before touching list files. If hold packages are not available anymore afterwards, they remain as dummy entries in "status" and "available" DPKG databases to preserve their hold state. At the same time, "apt-mark unhold" cannot be performed on packages which are neither installed nor available in any installed APT list/repo: #6559
  • Loading branch information
MichaIng committed Aug 20, 2023
1 parent 464c30b commit 8be2557
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .meta/dietpi-bookworm-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ G_CHECK_KERNEL || { G_WHIP_YESNO '[ INFO ] Reboot required
G_DIETPI-NOTIFY 2 'Updating DietPi to latest version'
/boot/dietpi/dietpi-update 1

mapfile -t apackages < <(apt-mark showhold)
[[ ${apackages[0]} ]] && G_EXEC_DESC='Unholding all packages' G_EXEC apt-mark unhold "${apackages[@]}"
unset -v apackages

G_DIETPI-NOTIFY 2 'Migrating package lists to Bookworm suite'
G_EXEC sed -i -e 's/bullseye/bookworm/g' -e 's/ non-free$/ non-free non-free-firmware/' /etc/apt/sources.list
[[ $(find /etc/apt/sources.list.d/*.list 2> /dev/null) ]] && G_EXEC sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list
Expand Down

0 comments on commit 8be2557

Please sign in to comment.