build: optimize vmdk

This commit is contained in:
Pascal Vizeli 2018-08-10 15:10:38 +00:00
parent ef61756566
commit 5f24bd5574
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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}

View File

@ -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
(