distro/fedora: produce VMDK as stream-optimized

Added code in fedora/pipelines.go to add the subformat field in the
manifests

Added manifests for f34 and f35 for x86_64 only (image type not
available in aarch64)
This commit is contained in:
Jordi Gil 2022-05-04 17:53:38 -04:00 committed by Tomáš Hozza
parent 3a079eec26
commit 69095f5034
3 changed files with 5 additions and 3 deletions

View file

@ -97,7 +97,7 @@ func vmdkPipelines(t *imageType, customizations *blueprint.Customizations, optio
imagePipeline := liveImagePipeline(treePipeline.Name, diskfile, partitionTable, t.arch, kernelVer)
pipelines = append(pipelines, *imagePipeline)
qemuPipeline := qemuPipeline(imagePipeline.Name, diskfile, t.filename, osbuild.QEMUFormatVMDK, nil)
qemuPipeline := qemuPipeline(imagePipeline.Name, diskfile, t.filename, osbuild.QEMUFormatVMDK, osbuild.VMDKOptions{Subformat: osbuild.VMDKSubformatStreamOptimized})
pipelines = append(pipelines, *qemuPipeline)
return pipelines, nil
}

View file

@ -5008,7 +5008,8 @@
"options": {
"filename": "disk.vmdk",
"format": {
"type": "vmdk"
"type": "vmdk",
"subformat": "streamOptimized"
}
}
}

View file

@ -5224,7 +5224,8 @@
"options": {
"filename": "disk.vmdk",
"format": {
"type": "vmdk"
"type": "vmdk",
"subformat": "streamOptimized"
}
}
}