Commit 8867c509 authored by Darren Shepherd's avatar Darren Shepherd

Add ability to set architecture

The ARCH env var can be set by the install.sh caller. This is specifically important if you want to install arm on arm64.
parent a66aae51
...@@ -189,7 +189,9 @@ verify_k3s_is_executable() { ...@@ -189,7 +189,9 @@ verify_k3s_is_executable() {
# --- set arch and suffix, fatal if architecture not supported --- # --- set arch and suffix, fatal if architecture not supported ---
setup_verify_arch() { setup_verify_arch() {
if [ -z "$ARCH" ]; then
ARCH=`uname -m` ARCH=`uname -m`
fi
case $ARCH in case $ARCH in
amd64) amd64)
ARCH=amd64 ARCH=amd64
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment