main/postmarketos-release-upgrade: new aport
This script allows upgrading / downgrading postmarketOS releases. Default is trying to upgrade to the latest stable release (v22.06).
Help text:
# postmarketos-release-upgrade -h
usage: postmarketos-release-upgrade [-h] [CHANNEL]
arguments:
-h show this help
CHANNEL the release channel to upgrade/downgrade to, e.g.
"v22.06" (default) or "edge"
Running on v21.12:
# postmarketos-release-upgrade
>>> You are about to upgrade from v21.12 to v22.06.
>>>
>>> This will be done in the following steps:
>>> 1) Upgrading packages of v21.12
>>> 2) Dry run of upgrading packages to v22.06
>>> 3) Upgrading packages to v22.06
>>> 4) Prompt to reboot
>>>
>>> A log of and backup of your /etc/apk/repositories will be in:
>>> /var/lib/postmarketos-release-upgrade/2022-06-06-100558
>>>
>>> It is strongly recommended to do this via SSH and in tmux/screen.
>>> More information: https://postmarketos.org/upgrade
>>>
>>> This upgrade should work fine, but in the worst case your device
>>> may not boot anymore. Make backups of important data first!
>>>
>>> Proceed with upgrade to v22.06? [y/N]