Skip to content

Commit

Permalink
pkg/distro: enable autotailor overrides for rhel9
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleyzissou committed Dec 4, 2023
1 parent d1c68ce commit 2b27224
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/distro/rhel9/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,18 @@ func osCustomizations(
panic(fmt.Sprintf("unexpected error creating tailoring file options: %v", err))
}

var overrides []osbuild.OscapAutotailorOverride
for _, override := range oscapConfig.Tailoring.Overrides {
overrides = append(overrides, osbuild.OscapAutotailorOverride{
Var: override.Var,
Value: override.Value,
})
}

tailoringOptions := osbuild.OscapAutotailorConfig{
Selected: oscapConfig.Tailoring.Selected,
Unselected: oscapConfig.Tailoring.Unselected,
Overrides: overrides,
NewProfile: newProfile,
}

Expand Down

0 comments on commit 2b27224

Please sign in to comment.