# Pastebin Wygky688 zyga@fyke:~/snapd/cmd$ git diff --cached diff --git a/cmd/snap-confine/mount-support-nvidia.c b/cmd/snap-confine/mount-support-nvidia.c index c5941f3cd..2e47ed910 100644 --- a/cmd/snap-confine/mount-support-nvidia.c +++ b/cmd/snap-confine/mount-support-nvidia.c @@ -272,7 +272,7 @@ static void sc_mkdir_and_mount_and_glob_files(const char *rootfs_dir, } // Remount $tgt_dir (i.e. .../lib/gl) read only debug("remounting tmpfs as read-only %s", libgl_dir); - if (mount(NULL, buf, NULL, MS_REMOUNT | MS_RDONLY, NULL) != 0) { + if (mount("none", buf, NULL, MS_REMOUNT | MS_RDONLY, NULL) != 0) { die("cannot remount %s as read-only", buf); } }