imx6: apalis: add missing jffs2reset to ramfs during sysupgrade
authorPetr Štetiar <ynezz@true.cz>
Tue, 16 Jul 2019 20:06:40 +0000 (22:06 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 17 Jul 2019 10:16:29 +0000 (12:16 +0200)
jffs2reset is used to cleanup the rootfs_data overlay, but it's
currently missing in the ramfs during sysupgrade leading to the
following error:

 Switching to ramdisk...
 Performing system upgrade...
 /lib/upgrade/do_stage2: line 27: jffs2reset: not found

Fixes: 2f1a11d0089c ("imx6: apalis: fix config survival after sysupgrade -n")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/imx6/base-files/lib/upgrade/platform.sh

index aecdf6c4b1acfbdb178e4e974fbfa4c6e8cbff54..0dfaf0163d0aa5dc5e13e4b8c6236a69cd59bd63 100755 (executable)
@@ -4,7 +4,7 @@
 
 . /lib/imx6.sh
 
-RAMFS_COPY_BIN='blkid'
+RAMFS_COPY_BIN='blkid jffs2reset'
 
 enable_image_metadata_check() {
        case "$(board_name)" in