You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux
Adrian Schmutzler 86c89bf5e8 kirkwood: fix sysupgrade experience for early DSA-adopters
Conceptually, the compat-version during sysupgrade is meant to
describe the config. Therefore, if somebody starts with a device on
19.07 and swconfig, and that person does a forceful upgrade into a
DSA-based firmware without wiping his/her config, then the local
compat-version should stay at 1.0 according to the config present
(and not get updated).

However, this poses a problem for those people that early-adopted
DSA in master, as they already have adjusted their config for DSA,
but it still is "1.0" as far as sysupgrade is concerned. This can
be healed by a simple

   uci set system.@system[0].compat_version="1.1"
   uci commit system

But this needs to be applied _after_ the upgrade (as the "old" fwtool
on the old installation does not know about compat_version) and it
requires access via SSH (i.e. no pure GUI solution is available for
this group of people, apart from wiping their config _again_ for
no technical reason). Despite, the situation will not become
obvious to those just upgrading via GUI, they will just have the
experience of a "broken upgrade".

This is a conflict which cannot be resolved by achieving both goals,
we have to decide to either keep the strict concept or improve the
situation for early adopters.

In this patch, we address the issue by providing a uci-defaults
script that will raise the compat_version for _all_ people upgrading
into a 1.1 image, no matter whether they have reset config or not.
The idea is to implement this as a _temporary_ solution, so early
adopters can upgrade into the new mechanism without issues, and
after a few weeks/months we could remove the uci-defaults script
again.

If we e.g. remove the script just before 20.xx.0-rc1, early adopters
should have moved on by then, and existing stable users would still
get the intended experience.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
4 years ago
..
apm821xx kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
ar71xx kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
arc770 arc770: update kernel version to 5.4 4 years ago
archs38 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
armvirt armvirt,x86: fix build breakage of crypto ccp module 4 years ago
at91 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
ath25 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
ath79 ath79/nand: add support for Netgear WNDR4300TN 4 years ago
bcm27xx kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
bcm47xx kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
bcm53xx kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
bcm63xx bcm63xx: add missing endif board comnents 4 years ago
cns3xxx kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
gemini gemini: Add swap partition to DNS-313 4 years ago
generic kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
imx6 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
ipq40xx ipq40xx: refresh kernel 5.4 config 4 years ago
ipq806x kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
ipq807x kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
kirkwood kirkwood: fix sysupgrade experience for early DSA-adopters 4 years ago
lantiq kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
layerscape kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
malta malta: add missing symbols for kernel 5.4 4 years ago
mediatek mediatek: fix mt7622-rfb1 board support 4 years ago
mpc85xx kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
mvebu mvebu: fix sysupgrade experience for early DSA-adopters 4 years ago
mxs kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
octeon kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
octeontx treewide: kernel: drop redundant USB_EHCI_HCD=n config symbol 4 years ago
omap kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
oxnas oxnas: use vendor_model scheme for ox810se 4 years ago
pistachio kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
ramips ramips: use lzma-loader for RT5350F-OLinuXino devices 4 years ago
rb532 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
rockchip rockchip: enable rockchip-thermal 4 years ago
samsung kernel: Update kernel 4.14 to version 4.14.187 4 years ago
sunxi kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
tegra kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
uml treewide: Remove self from MAINTAINER entries 4 years ago
x86 Revert "procd: update to git HEAD" 4 years ago
zynq kernel: unify CONFIG_GPIO_SYSFS in kernel configs 4 years ago
Makefile build: add 'make kernel_xconfig' command 4 years ago