diff --git a/pkg/distro/fedora/package_sets.go b/pkg/distro/fedora/package_sets.go index c257e440e9..7a111162fd 100644 --- a/pkg/distro/fedora/package_sets.go +++ b/pkg/distro/fedora/package_sets.go @@ -182,13 +182,14 @@ func iotCommitPackageSet(t *imageType) rpmmd.PackageSet { "podman-plugins", // deprecated in podman 5 }, }) - } else { - ps = ps.Append(rpmmd.PackageSet{ - Include: []string{ - "bootupd", // added in F40+ - }, - }) } + if common.VersionLessThan(t.arch.distro.osVersion, "41") { + ps = ps.Append(rpmmd.PackageSet{ + Include: []string{ + "bootupd", // Added in F41+ + }, + }) + } return ps }