"modules" because they're not actual modules. Currently, it's just a synonym to packages. This is the same behavior as lorax-composer has.
39 lines
824 B
Go
39 lines
824 B
Go
package blueprint
|
|
|
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
|
|
|
type vhdOutput struct{}
|
|
|
|
func (t *vhdOutput) translate(b *Blueprint) *pipeline.Pipeline {
|
|
packages := [...]string{
|
|
"@Core",
|
|
"chrony",
|
|
"kernel",
|
|
"selinux-policy-targeted",
|
|
"grub2-pc",
|
|
"langpacks-en",
|
|
"net-tools",
|
|
"ntfsprogs",
|
|
"WALinuxAgent",
|
|
"libxcrypt-compat",
|
|
}
|
|
excludedPackages := [...]string{
|
|
"dracut-config-rescue",
|
|
}
|
|
p := getCustomF30PackageSet(packages[:], excludedPackages[:], b)
|
|
addF30LocaleStage(p)
|
|
addF30FSTabStage(p)
|
|
addF30GRUB2Stage(p, b.getKernelCustomization())
|
|
addF30FixBlsStage(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"
|
|
}
|