From e1d6af8a70a3dfbc4c80629b06e9890961f4aa6f Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:40:59 -0400 Subject: [PATCH] Box86: use `User error (reporting allowed):` for 16K page diagnosis --- apps/Box86/install-32 | 5 +++++ apps/Box86/install-64 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/Box86/install-32 b/apps/Box86/install-32 index f1e2624aaf..f4fdfbc40a 100755 --- a/apps/Box86/install-32 +++ b/apps/Box86/install-32 @@ -1,5 +1,10 @@ #!/bin/bash +PAGE_SIZE="$(getconf PAGE_SIZE)" +if [[ "$PAGE_SIZE" == "16384" ]]; then + error "User error (reporting allowed): 16K pagesize not supported on box86 and your system is currently running a 32bit ARM OS. Consider opening an issue on Box86 GitHub." +fi + if dpkg -l box86 &>/dev/null ;then sudo apt purge -y --allow-change-held-packages box86* fi diff --git a/apps/Box86/install-64 b/apps/Box86/install-64 index 5793572557..5018afc272 100755 --- a/apps/Box86/install-64 +++ b/apps/Box86/install-64 @@ -2,7 +2,7 @@ PAGE_SIZE="$(getconf PAGE_SIZE)" if [[ "$PAGE_SIZE" == "16384" ]]; then - error "16K pagesize not supported on box86. Check if your system supports running 32bit ARM binaries and open an issue on Box86 GitHub if it can." + error "User error (reporting allowed): 16K pagesize not supported on box86. Check if your system supports running 32bit ARM binaries and open an issue on Box86 GitHub if it can." fi function check-armhf() {