Skip to content

Commit

Permalink
manifest: add comment about disabling dracut for ostree
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k committed Oct 18, 2024
1 parent 3f3040b commit 9dac957
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/manifest/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,12 @@ func (p *OS) serialize() osbuild.Pipeline {
if p.OSTreeRef != "" {
rpmOptions.OSTreeBooted = common.ToPtr(true)
rpmOptions.DBPath = "/usr/share/rpm"
// The dracut-config-rescue package will create a rescue kernel when
// installed. This creates an issue with ostree-based images because
// rpm-ostree requires that only one kernel exists in the image.
// Disabling dracut for ostree-based systems resolves this issue.
// Dracut will be run by rpm-ostree itself while composing the image.
// https://github.com/osbuild/images/issues/624
rpmOptions.DisableDracut = true
}
pipeline.AddStage(osbuild.NewRPMStage(rpmOptions, osbuild.NewRpmStageSourceFilesInputs(p.packageSpecs)))
Expand Down

0 comments on commit 9dac957

Please sign in to comment.