Retain old compat_version for sysupgrade compatibility #170
No reviewers
Labels
No Label
RFC
RFT
WIP
blocked
bsp
bug
build/scripts/tools
duplicate
feature
fixed
layer3
mantis
more details required
needs changes
node
packages/fff
rejected
security
trivial
upstream
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: freifunk-franken/firmware#170
Loading…
Reference in New Issue
No description provided.
Delete Branch "fbl:compatversion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OpenWrt images contain a compat_version, which is used to block upgrades
to newer versions with incompatible configuration, if the configuration
cannot be migrated.
As we maintain our own configuration and all OpenWrt configuration files
are dropped on an upgrade, this upgrade block is not required.
To simplify the upgrade process, retain the old compat_version for the
next release and manually bump the compat_version after the upgrade, so
we stay compatible with future OpenWrt releases.
Signed-off-by: Fabian Bläse fabian@blaese.de
2db606d2ac
tof6fe1ef747
Changes:
Hi,
das fuehlt sich irgendwie so aussen rum gebastelt an. Kann man den compat_version-check nicht komplett ausschalten?
Könnte man, aber nicht für vergangene Firmwares. Und an sich finde ich es gar nicht schlecht so einen Check verfügbar zu haben, deshalb wollte ich ihn eigentlich nicht deaktivieren.
Ich weiß, dass dieser Workaround etwas unschön ist. Um den Check so weit aufzubohren, dass wir unseren - aus OpenWrt Sicht - Spezialfall damit abbilden können, hatte ich bisher keine Zeit. :-(
Na ja, wir (du) muessen uns halt um den Workaround kuemmern, wenn es mit den versions weiter geht. Ist ja nicht wirklich hoch komplex.
Partially applied for a pre-release. The compat-version bump should be applied on release.
For some unknown reason the compat_version is bumped to 1.1 with the current beta, despite having omitted the second patch to manually bump it.
Also, as support for a new mt7621 device has been added with the current beta/release, it might be desirable to limit this change to devices, which have been supported since the last release or earlier.
The compat_version is generated from board.json. The compat_version is written to that json here: https://github.com/openwrt/openwrt/blob/master/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version
Therefore, the manual bump of the compat_version is not necessary, and the beta (sadly) already contains compat_version 1.1, so a force flash is required to get from the current beta to stable.
Upgrading from older stable versions to the next stable version is no problem though.
Pull request closed