Repository navigation
fix(sandbox): bind /run/opengl-driver for accelerated media helpers - #2326
Merged
Merged
Conversation
NixOS publishes its Mesa, VA-API and Vulkan drivers only under /run/opengl-driver, so accelerated media helpers found no driver inside the preview sandbox. Bind it read-only, where present, alongside the GPU render nodes and /sys. Software and non-media helpers still get no GPU mounts. Refs #2261
wmfeht
pushed a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 13, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RQ23A9GXpM55JdnX683gMn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
On NixOS the Mesa, VA-API and Vulkan drivers live only under
/run/opengl-driver, a set of symlinks into/nix/store. The preview sandbox never mounted that path. Accelerated media helpers got the render nodes and/sysbut had no driver to load, so NixOS users had to patch the source.This adds a read-only
--ro-bind-try /run/opengl-drivernext to the GPU device and/sysbinds. It is a-trybind, so nothing changes on distributions that lack the path. Its symlink targets are reachable because the Nix package already setsSTRATA_SANDBOX_ROOT=/nix/store. Software, image, PDF, thumbnail and other non-media helpers still get no GPU mounts, and the existing GPU sandbox tests now assert that for the new path too./run/opengl-driver-32is not bound: it only holds 32-bit drivers, and the 64-bit helper can never load them.Visual evidence
N/A: this changes which paths the sandbox mounts, not the UI.
How to test
substituteInPlaceworkaround from the issue.nvtoporintel_gpu_top.Expected result: With this branch the decode engine is busy during playback. On the current release it stays idle because the helper falls back to software. On other distributions, previews behave as before.
Related issue
Closes #2261