Skip to content

Commit

Permalink
image: enable org.fedoraproject.Anaconda.Modules.Users if needed
Browse files Browse the repository at this point in the history
It turns out that on centos9 users are not added when specified
in kickstart files. This commit should fix this.
  • Loading branch information
mvo5 authored and achilleas-k committed Apr 19, 2024
1 parent 2eef394 commit a58f8b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bib/cmd/bootc-image-builder/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,12 @@ func manifestForISO(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest, erro

img.Users = users.UsersFromBP(customizations.GetUsers())
img.Groups = users.GroupsFromBP(customizations.GetGroups())
// XXX: this should really be done by images, the consumer should not
// need to know these details. so once images is fixed drop it here
// again.
if len(img.Users) > 0 || len(img.Groups) > 0 {
img.AdditionalAnacondaModules = append(img.AdditionalAnacondaModules, "org.fedoraproject.Anaconda.Modules.Users")
}

switch c.Architecture {
case arch.ARCH_X86_64:
Expand Down

0 comments on commit a58f8b6

Please sign in to comment.