Skip to content

Commit 10df4f5

Browse files
authored
Merge pull request #17575 from hakman/automated-cherry-pick-of-#17557-upstream-release-1.32
Automated cherry pick of #17557: Use yum instead of dnf on Amazon Linux 2
2 parents 242e43d + 971f36e commit 10df4f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/pkg/distributions/distributions.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ func (d *Distribution) HasDNF() bool {
9191
return d.version >= 8
9292
case "fedora":
9393
return d.version >= 22
94+
case "amazonlinux2":
95+
return false
9496
default:
9597
klog.Warningf("unknown project for HasDNF (%q), assuming does support dnf", d.project)
9698
return true

0 commit comments

Comments
 (0)