Create OVA file from release (#636)
* Create OVA file from release * Fix name & add boot flag * revert name * style cleanup * Fix script * Add cleanup
This commit is contained in:
@@ -298,16 +298,17 @@ function convert_disk_image_virtual() {
|
||||
local hdd_vmdk="$(hassos_image_name vmdk)"
|
||||
local hdd_vhdx="$(hassos_image_name vhdx)"
|
||||
local hdd_vdi="$(hassos_image_name vdi)"
|
||||
local hdd_qcow2="$(hassos_image_name qcow2)"
|
||||
|
||||
rm -f "${hdd_vmdk}"
|
||||
rm -f "${hdd_vhdx}"
|
||||
rm -f "${hdd_vdi}"
|
||||
rm -f "${hdd_qcow2}"
|
||||
|
||||
qemu-img convert -O vmdk "${hdd_img}" "${hdd_vmdk}"
|
||||
qemu-img convert -O vhdx "${hdd_img}" "${hdd_vhdx}"
|
||||
qemu-img convert -O vdi "${hdd_img}" "${hdd_vdi}"
|
||||
|
||||
rm -f "${hdd_img}"
|
||||
qemu-img convert -O qcow2 "${hdd_img}" "${hdd_qcow2}"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user