1
0
mirror of synced 2024-11-22 09:14:23 +01:00

Mount /etc/alternatives inside bubblewrap

This is now required by ffmpeg
This commit is contained in:
jvoisin 2020-11-13 17:18:20 +01:00
parent 77dde8a049
commit b3def8b5de

View File

@ -37,7 +37,7 @@ def _get_bwrap_args(tempdir: str,
# XXX: use --ro-bind-try once all supported platforms # XXX: use --ro-bind-try once all supported platforms
# have a bubblewrap recent enough to support it. # have a bubblewrap recent enough to support it.
ro_bind_dirs = ['/usr', '/lib', '/lib64', '/bin', '/sbin', cwd] ro_bind_dirs = ['/usr', '/lib', '/lib64', '/bin', '/sbin', '/etc/alternatives', cwd]
for bind_dir in ro_bind_dirs: for bind_dir in ro_bind_dirs:
if os.path.isdir(bind_dir): # pragma: no cover if os.path.isdir(bind_dir): # pragma: no cover
ro_bind_args.extend(['--ro-bind', bind_dir, bind_dir]) ro_bind_args.extend(['--ro-bind', bind_dir, bind_dir])