Merge branch 'master' into arm64

This commit is contained in:
Serge Schneider
2021-09-21 16:36:50 +01:00
4 changed files with 23 additions and 8 deletions

View File

@@ -28,11 +28,26 @@ dependencies_check()
false
fi
# If we're building on a native arm platform, we don't need to check for
# binfmt_misc or require it to be loaded.
if ! grep -q "/proc/sys/fs/binfmt_misc" /proc/mounts; then
echo "Module binfmt_misc not loaded in host"
echo "Please run:"
echo " sudo modprobe binfmt_misc"
exit 1
binfmt_misc_required=1
case $(uname -m) in
aarch64)
binfmt_misc_required=0
;;
arm*)
binfmt_misc_required=0
;;
esac
if [[ "${binfmt_misc_required}" == "1" ]]; then
if ! grep -q "/proc/sys/fs/binfmt_misc" /proc/mounts; then
echo "Module binfmt_misc not loaded in host"
echo "Please run:"
echo " sudo modprobe binfmt_misc"
exit 1
fi
fi
}