imx: make sdcard/eMMC sysupgrade more resilient
authorLech Perczak <lech.perczak@gmail.com>
Thu, 28 Apr 2022 21:32:12 +0000 (23:32 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Mon, 11 Jul 2022 12:18:40 +0000 (14:18 +0200)
commit4436d7bae8c38eda1cb159e3b1ffd2fd1a553bed
tree92b13d8262e3438be3f4447fa96ffb2d69dca49f
parent70a9c75ef3ff3866b0cf9b80323ba756a3850b59
imx: make sdcard/eMMC sysupgrade more resilient

Ensure, that kernel update is performed atomically on filesystem, to
reduce likelihood of failure if power-cut occurs during sysupgrade. If
kernel update fails for whatever reason, skip updating rootfs as well.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
target/linux/imx/base-files/lib/imx.sh