diff --git a/integration/fixtures/test-images.json b/integration/fixtures/test-images.json index b7eb9013..239c4ecd 100644 --- a/integration/fixtures/test-images.json +++ b/integration/fixtures/test-images.json @@ -130,6 +130,13 @@ "description": "Valid rpm DB, yum present", "ignoreErrors": false }, + { + "image": "docker.io/redhat/ubi9-minimal", + "tag": "9.4-949", + "digest": "sha256:9607229894026ebecade4623038fce35bb75bf9371aca7b08ca11b08d103d2ab", + "distro": "Redhat", + "description": "Valid microdnf, no yum/dnf/rpm" + }, { "image": "docker.io/grafana/grafana-image-renderer", "tag" : "3.4.0", diff --git a/pkg/pkgmgr/rpm.go b/pkg/pkgmgr/rpm.go index 139787fd..62d0c5fd 100644 --- a/pkg/pkgmgr/rpm.go +++ b/pkg/pkgmgr/rpm.go @@ -422,7 +422,7 @@ func (rm *rpmManager) installUpdates(ctx context.Context, updates unversioned.Up return nil, nil, fmt.Errorf("no patchable packages found") } - const microdnfInstallTemplate = `sh -c '%[1]s update %[2]s && %[1]s clean all'` + const microdnfInstallTemplate = `sh -c '%[1]s update %[2]s -y && %[1]s clean all'` installCmd = fmt.Sprintf(microdnfInstallTemplate, rm.rpmTools["microdnf"], pkgs) default: err := errors.New("unexpected: no package manager tools were found for patching")