diff --git a/target/linux/imx/base-files/lib/imx.sh b/target/linux/imx/base-files/lib/imx.sh index a451de3779e..9c692357588 100644 --- a/target/linux/imx/base-files/lib/imx.sh +++ b/target/linux/imx/base-files/lib/imx.sh @@ -41,9 +41,12 @@ imx_sdcard_do_upgrade() { board_dir="${board_dir%/}" imx_sdcard_mount_boot - get_image "$1" | tar Oxf - ${board_dir}/kernel > /boot/uImage - get_image "$1" | tar Oxf - ${board_dir}/root > $(rootpart_from_uuid) - sync + get_image "$1" | tar Oxf - ${board_dir}/kernel > /boot/uImage-new && \ + mv /boot/uImage-new /boot/uImage && \ + sync && \ + get_image "$1" | tar Oxf - ${board_dir}/root > $(rootpart_from_uuid) && \ + sync + umount /boot }