From: Rafał Miłecki <ra...@milecki.pl> It should help people understand that code and prevent breaking it during some cleanups.
Signed-off-by: Rafał Miłecki <ra...@milecki.pl> --- target/linux/imx6/base-files/lib/upgrade/platform.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/linux/imx6/base-files/lib/upgrade/platform.sh b/target/linux/imx6/base-files/lib/upgrade/platform.sh index c3be9d5424..a290a469ad 100755 --- a/target/linux/imx6/base-files/lib/upgrade/platform.sh +++ b/target/linux/imx6/base-files/lib/upgrade/platform.sh @@ -78,6 +78,10 @@ platform_pre_upgrade() { case "$board" in apalis*) + # On Apalis overlay doesn't get overwriten so it has to be + # cleared manually. Call jffs2reset which finds "rootfs_data" + # volume (eMMC F2FS partition with such a label) and erases all + # files from it. [ "$SAVE_CONFIG" -eq 0 ] && { jffs2reset -y umount /overlay -- 2.21.0 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel