Skip to content

Commit 91e5ba5

Browse files
authored
Merge pull request #17557 from ConnorJC3/fix-al2-dnf
Use yum instead of dnf on Amazon Linux 2
2 parents d3a7607 + d4fe130 commit 91e5ba5

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)