Build: Support VDI, VDHX, VMDK (#259)
* Support VDI, VDHX, VMDK * Update hassos-hook.sh * Update hdd-image.sh
This commit is contained in:
@@ -284,12 +284,20 @@ function _fix_disk_spl_mbr() {
|
||||
}
|
||||
|
||||
|
||||
function convert_disk_image_vmdk() {
|
||||
function convert_disk_image_virtual() {
|
||||
local hdd_img="$(hassos_image_name img)"
|
||||
local hdd_vmdk="$(hassos_image_name vmdk)"
|
||||
local hdd_vhdx="$(hassos_image_name vhdx)"
|
||||
local hdd_vdi="$(hassos_image_name vdi)"
|
||||
|
||||
rm -f ${hdd_vmdk}
|
||||
rm -f ${hdd_vhdx}
|
||||
rm -f ${hdd_vdi}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user