Skip to content

Commit 971f36e

Browse files
ConnorJC3hakman
authored andcommitted
Use yum instead of dnf on Amazon Linux 2
Signed-off-by: Connor Catlett <[email protected]>
1 parent 242e43d commit 971f36e

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)