Skip to content

Commit

Permalink
os: disable dracut for ostree based systems on rpm installation
Browse files Browse the repository at this point in the history
Installing the `minimal-environment` RPM group implies the installation
of `dracut-config-rescue` which makes `org.osbuild.ostree.preptree` to
fail because `rpm-ostree` detects multiple kernels within the tree
(the usual one and the rescue one). Disabling dracut during the rpm
installation prevents the rescue kernel/initrd to be generated and
makes `rpm-ostree` to finish the compose succesfully.

`rpm-ostree` runs dracut on his own during the compose so this doesn't
seem to affect the final result.

Resolves: #624
  • Loading branch information
mmartinv committed Sep 3, 2024
1 parent e734c0c commit 8481758
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/manifest/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ func (p *OS) serialize() osbuild.Pipeline {
if p.OSTreeRef != "" {
rpmOptions.OSTreeBooted = common.ToPtr(true)
rpmOptions.DBPath = "/usr/share/rpm"
rpmOptions.DisableDracut = true
}
pipeline.AddStage(osbuild.NewRPMStage(rpmOptions, osbuild.NewRpmStageSourceFilesInputs(p.packageSpecs)))

Expand Down

0 comments on commit 8481758

Please sign in to comment.