[OpenWrt-Devel] imx6: sysupgrade: document Apalis code handiing rootfs_data
diff mbox series

Message ID 20190717052749.16609-1-zajec5@gmail.com
State New
Delegated to: Rafał Miłecki
Headers show
Series
  • [OpenWrt-Devel] imx6: sysupgrade: document Apalis code handiing rootfs_data
Related show

Commit Message

Rafał Miłecki July 17, 2019, 5:27 a.m. UTC
From: Rafał Miłecki <rafal@milecki.pl>

It should help people understand that code and prevent breaking it
during some cleanups.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 target/linux/imx6/base-files/lib/upgrade/platform.sh | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox series

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