imx6: apalis: fix config survival after sysupgrade -n
authorPetr Štetiar <ynezz@true.cz>
Mon, 13 May 2019 14:42:41 +0000 (16:42 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 20 May 2019 19:19:48 +0000 (21:19 +0200)
commit2f1a11d0089c9d4b675b0e1e8806e1e8e3be5a02
treebfa8a83542d1a674b1f0ecb285716df9551f4467
parent049748e87e329313635cc7f7cc858a6c44eaf4f1
imx6: apalis: fix config survival after sysupgrade -n

This patch fixes `sysupgrade -n` when flashed with rootfs of the same
size as currently running, so the rootfs_data wouldn't get destroyed and
thus survive reboot. So let's fix it by always cleaning up the content
of the rootfs_data during sysupgrade.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/imx6/base-files/lib/upgrade/platform.sh