Skip to content
Snippets Groups Projects
Commit b51d3fd8 authored by Simon McVittie's avatar Simon McVittie
Browse files

runtime: Save a bwrap invocation and a shell by not using globbing


This was using bwrap to make ${libdir}/dri available on
/run/host/${libdir}/dri, in order to run the equivalent of:

    ln -fns /run/host/${libdir}/dri/* /overrides/lib/${tuple}/dri/

Instead of using the shell wildcard '*' to implement readdir(), let's
just call readdir(${libdir}/dri) ourselves, and fix up the symlink
targets to point into /run/host/${libdir}/dri.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 3fea265c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment