This is still just a placeholder, and in particular the live CD support is not right. Signed-off-by: Tom Gundersen <teg@jklm.no>
22 lines
438 B
Go
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"
|
|
}
|