On 2019-07-12 14:05, Rafał Miłecki wrote:
From: Rafał Miłecki <[email protected]>

The only step between platform_pre_upgrade() and platform_do_upgrade()
is switching to ramdisk. It should be fine to call "jffs2reset" &
"umount" from the later callback and get rid of the first one.

Signed-off-by: Rafał Miłecki <[email protected]>

That patch was wrong. On imx6 "jffs2reset -y" has to be called in
platform_pre_upgrade() AKA before the switch_to_ramfs().

jffs2reset finds "rootfs_data" volume (emmc f2fs partition with
"rootfs_data" label) and erases all files from it:
/dev/loop0 is mounted as /overlay, only erasing files

It cannot be handled after switch_to_ramfs() as that function umounts
/overlay.

Big thanks for Petr for checking that with me!

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to