[OpenWrt-Devel] [PATCH] imx6: sysupgrade: document Apalis code handiing rootfs_data
Rafał Miłecki
zajec5 at gmail.com
Wed Jul 17 01:27:49 EDT 2019
From: Rafał Miłecki <rafal at milecki.pl>
It should help people understand that code and prevent breaking it
during some cleanups.
Signed-off-by: Rafał Miłecki <rafal at 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 at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list