[arm64] port scripts named A-F

also adds patching of arm64 templates for if it doesnt include /etc/network/interfaces
adds fallback to get_arch_value for alpine
adds neon check for mongodb for arm (avx equivalent)

missing:
alpine-teamspeak-server
apprise-api
archivebox
audiobookshelf
authentik
autocaliweb
baserow
byparr
checkmate
checkmk
degoog
domain-locker
elementsynapse
flaresolverr
flatnotes
freepbx
frigate
This commit is contained in:
Sam Heinz
2026-06-18 23:14:09 +10:00
parent b1eec90772
commit 2178f72ec9
144 changed files with 280 additions and 218 deletions
+16 -6
View File
@@ -6912,14 +6912,24 @@ setup_mongodb() {
export NEEDRESTART_MODE=a
export NEEDRESTART_SUSPEND=1
# Check AVX support
if ! grep -qm1 'avx[^ ]*' /proc/cpuinfo; then
local major="${MONGO_VERSION%%.*}"
if ((major > 5)); then
msg_error "MongoDB ${MONGO_VERSION} requires AVX support, which is not available on this system."
# Check CPU requirements: AVX on x86_64, NEON/ASIMD on arm64
case "$(uname -m)" in
aarch64)
if ! grep -qm1 'asimd' /proc/cpuinfo; then
msg_error "MongoDB ${MONGO_VERSION} requires ARMv8.2-A support, which is not available on this system."
return 236
fi
fi
;;
*)
if ! grep -qm1 'avx[^ ]*' /proc/cpuinfo; then
local major="${MONGO_VERSION%%.*}"
if ((major > 5)); then
msg_error "MongoDB ${MONGO_VERSION} requires AVX support, which is not available on this system."
return 236
fi
fi
;;
esac
case "$DISTRO_ID" in
ubuntu)