armsr: preserve configuration during sysupgrade
authorChristian Buschau <cbuschau@d00t.de>
Tue, 17 Oct 2023 12:51:53 +0000 (14:51 +0200)
committerChristian Buschau <cbuschau@d00t.de>
Thu, 19 Oct 2023 22:41:41 +0000 (00:41 +0200)
commitc0c4a9bce42bea74fa9fa984cde149eac5e479bf
tree9fa5dd56c1c573abd076f67a0c32757b00d954bf
parent72f7f18d2ba160f371c027ba4a60e82e19248340
armsr: preserve configuration during sysupgrade

Copy configuration to boot partition (partition 1) instead of root
partition (partition 2) because the root partition is not writable if
it's a suqashfs image.
Move configuration back to root during preinit.

Fixes: https://github.com/openwrt/openwrt/issues/13695
Signed-off-by: Christian Buschau <cbuschau@d00t.de>
(cherry picked from commit 67ce60c5f961c4248fa108cd0f949e2bade4536e)
target/linux/armsr/base-files/lib/preinit/79_move_config [new file with mode: 0644]
target/linux/armsr/base-files/lib/upgrade/platform.sh