Skip to content

Commit

Permalink
fix: skip do_memory_split on bookworm
Browse files Browse the repository at this point in the history
`do_memory_split` got removed on bookworm. Fixes mainsail-crew#219
  • Loading branch information
mryel00 committed Jan 6, 2024
1 parent 61421f5 commit 8f5856c
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 8f5856c

Please sign in to comment.