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

fix: skip do_memory_split on bookworm #223

Merged
merged 1 commit into from
Jan 7, 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
4 changes: 3 additions & 1 deletion tools/libs/set_gpumem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ set_gpu_mem() {
else
mem_split=256
fi
if [[ "$(is_raspbian)" = "1" ]] && [[ -n "$(command -v raspi-config)" ]]; then
if [[ "$(is_raspbian)" = "1" ]] &&
[[ "$(is_bookworm)" = "0" ]] &&
[[ -n "$(command -v raspi-config)" ]]; then
if sudo raspi-config nonint do_memory_split "${mem_split}" ;then
status_msg "Trying to set minimum GPU Memory to ${mem_split} MB ..." "0"
else
Expand Down
Loading