From 5f44bd25a461e4b8ff0b7402b6251d1c3641154f Mon Sep 17 00:00:00 2001 From: Haowen Liu <35328328+lunacd@users.noreply.github.com> Date: Thu, 10 Oct 2024 03:56:21 -0400 Subject: [PATCH] init: nvidia integration - Exclude repos from bind-mounting (#1503) 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. --- distrobox-init | 1 + 1 file changed, 1 insertion(+) diff --git a/distrobox-init b/distrobox-init index 2cb2c53b7c..f0d2961a8b 100755 --- a/distrobox-init +++ b/distrobox-init @@ -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')"