Skip to content

Commit

Permalink
fix(adoptium): edge case when 32bit system on 64bit arm
Browse files Browse the repository at this point in the history
  • Loading branch information
knotekt committed Aug 14, 2024
1 parent a82e569 commit 42773f4
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions manifests/adoptium.pp
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,19 @@
default => $facts['os']['architecture']
}

case $os_architecture {
'i386' : { $arch = 'x86-32' }
'x86_64' : { $arch = 'x64' }
'amd64' : { $arch = 'x64' }
'aarch64' : { $arch = 'aarch64' }
'arm64' : { $arch = 'aarch64' }
'armv7l' : { $arch = 'arm' }
default : {
fail ("unsupported platform ${$os_architecture}")
if $facts['platform'] =~ /arm/ {
$arch = 'arm'
} else {
case $os_architecture {
'i386' : { $arch = 'x86-32' }
'x86_64' : { $arch = 'x64' }
'amd64' : { $arch = 'x64' }
'aarch64' : { $arch = 'aarch64' }
'arm64' : { $arch = 'aarch64' }
'armv7l' : { $arch = 'arm' }
default : {
fail("unsupported platform ${os_architecture}")
}
}
}

Expand Down

0 comments on commit 42773f4

Please sign in to comment.