Its BLS entry always expects a separate boot partition. Skip it on all images until the rescue kernel package is usable.
39 lines
821 B
Go
39 lines
821 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[:])
|
|
addF30LocaleStage(p)
|
|
addF30FSTabStage(p)
|
|
addF30GRUB2Stage(p, b.getKernelCustomization())
|
|
addF30SELinuxStage(p)
|
|
addF30FixBlsStage(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"
|
|
}
|