Skip to content

Commit

Permalink
Box86: use User error (reporting allowed): for 16K page diagnosis
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Sep 29, 2023
1 parent 517cf6a commit e1d6af8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions apps/Box86/install-32
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/Box86/install-64
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit e1d6af8

Please sign in to comment.