diff --git a/airoha/base-files/lib/upgrade/platform.sh b/airoha/base-files/lib/upgrade/platform.sh index 0c776c85f73ed07368bead323697a7591690abcd..2b0e1f4fcf91a915f6b8cfcb2540a823f543f8d2 100644 --- a/airoha/base-files/lib/upgrade/platform.sh +++ b/airoha/base-files/lib/upgrade/platform.sh @@ -16,7 +16,7 @@ __check_image_emmc_gpt_support() { local image=$1 local board_name=$2 local configuration="$(get_configuration "$image" "$board_name")" || return 1 - if [ "$(get_root_device_type)" = emmc ] && ! get_image_component_ref "$image" bootloader-emmc "$configuration" ; then + if [ "$(get_root_device_type)" = emmc ] && ! get_image_component_ref "$image" bootloader-emmc "$configuration" > /dev/null ; then log "ERROR: Can not downgrade to image with missing eMMC GPT support." return 1 fi