Skip to content

Commit

Permalink
init: nvidia integration - Exclude repos from bind-mounting (#1503)
Browse files Browse the repository at this point in the history
When used on a Universal Blue OS like bluefin, the repo configurations
are available at `/run/host/etc/yum.repos.d/`. Repos that contain the
name nvidia are incorrectly bind-mounted into the container and causes
weird errors on boxes using yum and dnf.
  • Loading branch information
lunacd authored Oct 10, 2024
1 parent ccedbd7 commit 5f44bd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,7 @@ if [ "${nvidia}" -eq 1 ]; then
-path "/run/host/usr/lib32/*" -prune -o \
-path "/run/host/usr/lib64/*" -prune -o \
-path "/run/host/usr/lib/*" -prune -o \
-path "*.repo" -prune -o \
-iname "*nvidia*" -not -type d -print 2> /dev/null || :)"
for nvidia_file in ${NVIDIA_FILES}; do
dest_file="$(printf "%s" "${nvidia_file}" | sed 's|/run/host||g')"
Expand Down

0 comments on commit 5f44bd2

Please sign in to comment.