Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add page size checker before running steamcmd for ARM64 images #318

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ printf "\e[0;32m*****GENERATING CONFIGS*****\e[0m\n"

cd /palworld || exit

# Get the architecture using dpkg
architecture=$(dpkg --print-architecture)

# Get host kernel page size
kernel_page_size=$(getconf PAGESIZE)

# Check kernel page size for arm64 hosts before running steamcmd
if [ "$architecture" == "arm64" ] && [ "$kernel_page_size" != "4096" ]; then
echo "Only ARM64 hosts with 4k page size is supported."
exit 1
fi

if [ "${UPDATE_ON_BOOT,,}" = true ]; then
printf "\e[0;32m%s\e[0m\n" "*****STARTING INSTALL/UPDATE*****"

Expand All @@ -74,8 +86,6 @@ if [ "${UPDATE_ON_BOOT,,}" = true ]; then
fi
fi

# Get the architecture using dpkg
architecture=$(dpkg --print-architecture)
# Check if the architecture is arm64
if [ "$architecture" == "arm64" ]; then
# create an arm64 version of ./PalServer.sh
Expand Down