mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 15:36:29 +00:00
build: optimize vmdk
This commit is contained in:
parent
ef61756566
commit
5f24bd5574
@ -27,6 +27,7 @@ prepare_disk_image
|
|||||||
# Create disk images
|
# Create disk images
|
||||||
create_disk_image 6
|
create_disk_image 6
|
||||||
convert_disk_image_vmdk
|
convert_disk_image_vmdk
|
||||||
|
convert_disk_image_gz vmdk
|
||||||
|
|
||||||
# OTA
|
# OTA
|
||||||
create_ota_update
|
create_ota_update
|
||||||
|
@ -182,7 +182,8 @@ function convert_disk_image_vmdk() {
|
|||||||
|
|
||||||
|
|
||||||
function convert_disk_image_gz() {
|
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
|
rm -f ${hdd_img}.gz
|
||||||
gzip --best ${hdd_img}
|
gzip --best ${hdd_img}
|
||||||
|
@ -34,7 +34,7 @@ function create_ota_update() {
|
|||||||
) > ${rauc_folder}/manifest.raucm
|
) > ${rauc_folder}/manifest.raucm
|
||||||
|
|
||||||
# SPL
|
# SPL
|
||||||
if [ "${BOOT_SYS}" != "spl" ]; then
|
if [ "${BOOT_SYS}" == "spl" ]; then
|
||||||
cp -f ${spl} ${rauc_folder}/spl.img
|
cp -f ${spl} ${rauc_folder}/spl.img
|
||||||
|
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user