upgrades: Handle freedombox package during dist upgrade
- Move entire dist upgrade process to a separate service file, written under /run when needed.
- Need python3-systemd for upgrading unattended-upgrades at the beginning.
- Run unattended-upgrade once more to handle upgrading the freedombox package.
- Hold tt-rss package during upgrade, in a separate step, and ignoring errors due to missing package.
Test: To test this, currently, need to add the --test
argument to start-dist-upgrade
command, decrease the timer, and also increase the version in debian/changelog. This is to avoid upgrading to freedombox 20.21 in testing, which is missing changes that were added here. This also implies that we cannot fully test upgrade, including freedombox package, until after next release is uploaded with these changes.
Edited by James Valleroy