mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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.
This commit is contained in:
parent
a66aae51fe
commit
8867c509ce
@ -189,7 +189,9 @@ verify_k3s_is_executable() {
|
||||
|
||||
# --- set arch and suffix, fatal if architecture not supported ---
|
||||
setup_verify_arch() {
|
||||
if [ -z "$ARCH" ]; then
|
||||
ARCH=`uname -m`
|
||||
fi
|
||||
case $ARCH in
|
||||
amd64)
|
||||
ARCH=amd64
|
||||
|
Loading…
Reference in New Issue
Block a user