diff --git a/buildroot-external/board/ova/post-image.sh b/buildroot-external/board/ova/post-image.sh index f5942da55..8d6515ccf 100755 --- a/buildroot-external/board/ova/post-image.sh +++ b/buildroot-external/board/ova/post-image.sh @@ -27,6 +27,7 @@ prepare_disk_image # Create disk images create_disk_image 6 convert_disk_image_vmdk +convert_disk_image_gz vmdk # OTA create_ota_update diff --git a/buildroot-external/scripts/hdd-image.sh b/buildroot-external/scripts/hdd-image.sh index 76814d327..8f1faba26 100755 --- a/buildroot-external/scripts/hdd-image.sh +++ b/buildroot-external/scripts/hdd-image.sh @@ -182,7 +182,8 @@ function convert_disk_image_vmdk() { function convert_disk_image_gz() { - local hdd_img="$(hassos_image_name img)" + local hdd_ext=${1:-img} + local hdd_img="$(hassos_image_name ${hdd_ext})" rm -f ${hdd_img}.gz gzip --best ${hdd_img} diff --git a/buildroot-external/scripts/ota.sh b/buildroot-external/scripts/ota.sh index b60a38c97..d793e35d2 100755 --- a/buildroot-external/scripts/ota.sh +++ b/buildroot-external/scripts/ota.sh @@ -34,7 +34,7 @@ function create_ota_update() { ) > ${rauc_folder}/manifest.raucm # SPL - if [ "${BOOT_SYS}" != "spl" ]; then + if [ "${BOOT_SYS}" == "spl" ]; then cp -f ${spl} ${rauc_folder}/spl.img (