Skip to content
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
9 changes: 9 additions & 0 deletions incus/backend.func
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,15 @@ incus_configure_device_passthrough() {
fi
fi

if [[ "${ENABLE_FUSE:-no}" == "yes" ]] && ! incus_ct_exec test -c /dev/fuse 2>/dev/null; then
if incus config device add "${CT_NAME}" fuse unix-char source=/dev/fuse path=/dev/fuse \
>>"${LOGFILE:-$INCUS_BUILD_LOG}" 2>&1; then
msg_ok "FUSE device attached"
else
msg_warn "Could not add FUSE device"
fi
fi

if [[ -e /dev/apex_0 ]]; then
msg_custom "🔌" "${BL}" "Detected Coral TPU - configuring passthrough"
_incus_soft incus config device add "${CT_NAME}" apex0 unix-char source=/dev/apex_0 path=/dev/apex_0 >>"${LOGFILE:-$INCUS_BUILD_LOG}" 2>&1
Expand Down
Loading