debian-forge-composer/internal/blueprint/ami_output.go
Lars Karlitski 6a6144c2d9 blueprint: always exclude the rescue kernel
Its BLS entry always expects a separate boot partition. Skip it on all
images until the rescue kernel package is usable.
2019-10-29 16:01:37 +01:00

40 lines
818 B
Go

package blueprint
import "github.com/osbuild/osbuild-composer/internal/pipeline"
type amiOutput struct{}
func (t *amiOutput) translate(b *Blueprint) *pipeline.Pipeline {
packages := [...]string{
"@Core",
"chrony",
"kernel",
"selinux-policy-targeted",
"grub2-pc",
"langpacks-en",
"libxcrypt-compat",
"xfsprogs",
"cloud-init",
"checkpolicy",
"net-tools",
}
excludedPackages := [...]string{
"dracut-config-rescue",
}
p := getCustomF30PackageSet(packages[:], excludedPackages[:])
addF30FixBlsStage(p)
addF30LocaleStage(p)
addF30FSTabStage(p)
addF30GRUB2Stage(p, nil)
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"
}