Skip to content

Commit

Permalink
Map arm64 architecture to aarch64
Browse files Browse the repository at this point in the history
Ubuntu nodes map architecutre `uname -i` to aarch64 and `dpkg --print-architecture` to arm64 so we need this mapping reflect here

Signed-off-by: Jaymala Sinha <jsinha@chef.io>
  • Loading branch information
Jaymala Sinha committed Mar 9, 2020
1 parent 9868755 commit de09130
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ esac

# normalize the architecture we detected
case $machine in
"arm64"|"aarch64")
machine="aarch64"
;;
"x86_64"|"amd64"|"x64")
machine="x86_64"
;;
Expand Down
1 change: 0 additions & 1 deletion lib/mixlib/install/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class InvalidOptions < ArgumentError; end

SUPPORTED_ARCHITECTURES = %w{
aarch64
arm64
armv7l
i386
powerpc
Expand Down
2 changes: 2 additions & 0 deletions lib/mixlib/install/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def normalize_architecture(architecture)
case architecture
when "amd64"
"x86_64"
when "arm64"
"aarch64"
when "i86pc", "i686"
"i386"
when "sun4u", "sun4v"
Expand Down

0 comments on commit de09130

Please sign in to comment.