debian-forge-composer/internal/blueprint/vhd_output.go
Tom Gundersen 22254637f8 blueprint: generate real f30 images for all the output types
This is still just a placeholder, and in particular the live CD support
is not right.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2019-10-08 21:03:45 +02:00

22 lines
432 B
Go

package blueprint
import "osbuild-composer/internal/pipeline"
type vhdOutput struct{}
func (t *vhdOutput) translate(b *Blueprint) *pipeline.Pipeline {
p := getF30Pipeline()
addF30FSTabStage(p)
addF30GRUB2Stage(p)
addF30SELinuxStage(p)
addF30QemuAssembler(p, "qcow2", t.getName())
return p
}
func (t *vhdOutput) getName() string {
return "image.vhd"
}
func (t *vhdOutput) getMime() string {
return "application/x-vhd"
}