Update build.func
This commit is contained in:
parent
a47bc24568
commit
222bdedc25
@ -2559,7 +2559,7 @@ EOF
|
|||||||
if [[ $gpu_count -eq 1 ]]; then
|
if [[ $gpu_count -eq 1 ]]; then
|
||||||
# Automatic selection for single GPU
|
# Automatic selection for single GPU
|
||||||
selected_gpu="${available_gpus[0]}"
|
selected_gpu="${available_gpus[0]}"
|
||||||
msg_custom "⚙️" "${GN}" "Automatically configuring ${selected_gpu} GPU passthrough"
|
msg_ok "Automatically configuring ${selected_gpu} GPU passthrough"
|
||||||
else
|
else
|
||||||
# Multiple GPUs - ask user
|
# Multiple GPUs - ask user
|
||||||
echo -e "\n${INFO} Multiple GPU types detected:"
|
echo -e "\n${INFO} Multiple GPU types detected:"
|
||||||
@ -2936,7 +2936,7 @@ fix_gpu_gids() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_custom "🔧" "${BL}" "Detecting and setting correct GPU group IDs"
|
msg_info "Detecting and setting correct GPU group IDs"
|
||||||
|
|
||||||
# Get actual GIDs from container
|
# Get actual GIDs from container
|
||||||
local video_gid=$(pct exec "$CTID" -- sh -c "getent group video 2>/dev/null | cut -d: -f3")
|
local video_gid=$(pct exec "$CTID" -- sh -c "getent group video 2>/dev/null | cut -d: -f3")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user