Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions pkg/distro/generic/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,7 @@ func installerCustomizations(t *imageType, c *blueprint.Customizations) (manifes
isc.ISOBoot = *isoboot
}

for _, tmpl := range installerConfig.LoraxTemplates {
isc.LoraxTemplates = append(isc.LoraxTemplates, manifest.InstallerLoraxTemplate{
Path: tmpl.Path,
AfterDracut: tmpl.AfterDracut,
})
}

isc.LoraxTemplates = installerConfig.LoraxTemplates
if pkg := installerConfig.LoraxTemplatePackage; pkg != nil {
isc.LoraxTemplatePackage = *pkg
}
Expand Down
13 changes: 4 additions & 9 deletions pkg/distro/installer_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@ type InstallerConfig struct {
ISOBootType *manifest.ISOBootType `yaml:"iso_boot_type,omitempty"`

// Lorax template settings for org.osbuild.lorax stage
LoraxTemplates []InstallerLoraxTemplate `yaml:"lorax_templates,omitempty"`
LoraxTemplatePackage *string `yaml:"lorax_template_package"`
LoraxLogosPackage *string `yaml:"lorax_logos_package"`
LoraxReleasePackage *string `yaml:"lorax_release_package"`
}

type InstallerLoraxTemplate struct {
Path string `yaml:"path"`
AfterDracut bool `yaml:"after_dracut,omitempty"`
LoraxTemplates []manifest.InstallerLoraxTemplate `yaml:"lorax_templates,omitempty"`
LoraxTemplatePackage *string `yaml:"lorax_template_package"`
LoraxLogosPackage *string `yaml:"lorax_logos_package"`
LoraxReleasePackage *string `yaml:"lorax_release_package"`
}

// InheritFrom inherits unset values from the provided parent configuration and
Expand Down
5 changes: 3 additions & 2 deletions pkg/manifest/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type InstallerCustomizations struct {
}

type InstallerLoraxTemplate struct {
Path string
AfterDracut bool // Should this template be executed after dracut? Defaults to not.
Path string `yaml:"path"`
// Should this template be executed after dracut? Defaults to not.
AfterDracut bool `yaml:"after_dracut,omitempty"`
}
Loading