[arm64] Port scripts between garage-hortusfox to support arm64

Adds check for docker tag & arm64 in build.func and if present adds apparmor unconfined to get docker to work on non pve kernel
This commit is contained in:
Sam Heinz
2026-06-19 20:28:31 +10:00
parent 74e74e7949
commit 3e28d37cc6
38 changed files with 46 additions and 41 deletions
+5
View File
@@ -4246,6 +4246,11 @@ EOF
configure_gpu_passthrough
configure_additional_devices
# Docker-in-LXC on arm64 needs apparmor=unconfined to work.
if [[ ";${var_tags:-};" == *";docker;"* ]] && [[ "$(arch_resolve)" == "arm64" ]]; then
echo "lxc.apparmor.profile: unconfined" >>"$LXC_CONFIG"
fi
# Increase disk size for AMD ROCm runtime (~4GB extra needed)
if [[ "${GPU_TYPE:-}" == "AMD" ]]; then
local rocm_extra=4