From 848175811c52f6775588f461e624e77d2a5716c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Tue, 3 Sep 2024 07:39:14 +0200 Subject: [PATCH] os: disable dracut for ostree based systems on rpm installation 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 --- pkg/manifest/os.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/manifest/os.go b/pkg/manifest/os.go index 7d6181bdfc..0a627cd552 100644 --- a/pkg/manifest/os.go +++ b/pkg/manifest/os.go @@ -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)))