debian-forge-composer/internal/blueprint/ami_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
438 B
Go

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