Skip to content

Commit c9ddfd9

Browse files
fix(install): warn loudly on non-x86_64 architectures before pulling images
Detects the host architecture early in the preflight sequence. On any architecture other than x86_64/amd64, prints a 5-line warning that NOMAD officially supports x86_64 only, points at PR #419, and sleeps 10 seconds before continuing. Ctrl+C aborts cleanly before any Docker work happens. Preserves the community/hacker path: ARM64 users running with QEMU binfmt_misc emulation can still let the install proceed. The change just stops the silent 2.7GB amd64 pull on architectures where it will not work, which leaves partial images and /opt/project-nomad/ debris that confuse first-time users. Reported in #782.
1 parent 08d1447 commit c9ddfd9

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

install/install_nomad.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ check_is_debian_based() {
8686
echo -e "${GREEN}#${RESET} This script is running on a Debian-based system.\\n"
8787
}
8888

89+
check_is_x86_64() {
90+
local arch
91+
arch="$(uname -m)"
92+
if [[ "${arch}" != "x86_64" && "${arch}" != "amd64" ]]; then
93+
echo -e "${YELLOW}#${RESET} WARNING: Detected architecture '${arch}'. NOMAD officially supports x86_64 only.\\n"
94+
echo -e "${YELLOW}#${RESET} ARM64/aarch64 support is tracked in PR #419 and is not yet ready.\\n"
95+
echo -e "${YELLOW}#${RESET} Continuing on an unsupported architecture will likely fail and may leave\\n"
96+
echo -e "${YELLOW}#${RESET} partial Docker images and files behind that you'll need to clean up manually.\\n"
97+
echo -e "${YELLOW}#${RESET} Continuing in 10 seconds... press Ctrl+C now to abort.\\n"
98+
sleep 10
99+
return
100+
fi
101+
echo -e "${GREEN}#${RESET} Architecture check passed (${arch}).\\n"
102+
}
103+
89104
ensure_dependencies_installed() {
90105
local missing_deps=()
91106

@@ -539,6 +554,7 @@ success_message() {
539554

540555
# Pre-flight checks
541556
check_is_debian_based
557+
check_is_x86_64
542558
check_is_bash
543559
check_has_sudo
544560
ensure_dependencies_installed

0 commit comments

Comments
 (0)