armsr: preserve configuration during sysupgrade
authorChristian Buschau <cbuschau@d00t.de>
Tue, 17 Oct 2023 12:51:53 +0000 (14:51 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 19 Oct 2023 22:36:32 +0000 (00:36 +0200)
commit67ce60c5f961c4248fa108cd0f949e2bade4536e
treedfa748c8395344515c26d083c1d388297f795510
parent3e1ac00ccbdaa0c396b36429ddbe83d2e3f6276f
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>
target/linux/armsr/base-files/lib/preinit/79_move_config [new file with mode: 0644]
target/linux/armsr/base-files/lib/upgrade/platform.sh