Skip to content

Commit 97e92b3

Browse files
committed
Use "uname -m" for architecture
On RHEL10 in some circumstances (podman, x86_64), "uname -i" returns "unknown", but "uname -m" returns "x86_64". This needs more thorough checking for other architectures of concern. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent d708f1b commit 97e92b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/jdk/21/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cp -pr * /
1414
popd
1515

1616
# Set this JDK as the alternative in use
17-
_arch="$(uname -i)"
17+
_arch="$(uname -m)"
1818
alternatives --set java java-21-openjdk.${_arch}
1919
alternatives --set javac java-21-openjdk.${_arch}
2020
alternatives --set java_sdk_openjdk java-21-openjdk.${_arch}

0 commit comments

Comments
 (0)