upgrades: grub workaround, apt_hold fix
- Re-add workaround for grub
- For dist-upgrade from buster to bullseye, we had a workaround to avoid grub error during upgrade. The workaround is still needed for dist-upgrade from bullseye to bookworm. Helps #2057.
- Hold packages one at a time
-
apt-mark hold PACKAGES
accepts a list of packages. But if one of the package is missing from the apt repository, then it will fail to hold any of the listed packages. So it is necessary to try to hold each package by itself.
-
Test:
- Build freedombox package for bullseye-backports with this fix included.
- Install package in bullseye vagrant box.
- Enable automatic updates, and start dist upgrade from action.
- Check journal to see if there is an error from grub or mumble-server (missing from bookworm).
Signed-off-by: James Valleroy jvalleroy@mailbox.org