diff options
| author | jvoisin | 2020-11-13 17:18:20 +0100 |
|---|---|---|
| committer | jvoisin | 2020-11-13 17:18:20 +0100 |
| commit | b3def8b5de82dea90bdf65bc7b558d567a383a3a (patch) | |
| tree | 4815fbe1aa5179cd8bc8461f5dc98071ef17d4a7 /libmat2/bubblewrap.py | |
| parent | 77dde8a049514f3e3bca2b5207b246c624d77c5f (diff) | |
Mount /etc/alternatives inside bubblewrap
This is now required by ffmpeg
Diffstat (limited to 'libmat2/bubblewrap.py')
| -rw-r--r-- | libmat2/bubblewrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/bubblewrap.py b/libmat2/bubblewrap.py index 0d09a4c..970d5dd 100644 --- a/libmat2/bubblewrap.py +++ b/libmat2/bubblewrap.py | |||
| @@ -37,7 +37,7 @@ def _get_bwrap_args(tempdir: str, | |||
| 37 | 37 | ||
| 38 | # XXX: use --ro-bind-try once all supported platforms | 38 | # XXX: use --ro-bind-try once all supported platforms |
| 39 | # have a bubblewrap recent enough to support it. | 39 | # have a bubblewrap recent enough to support it. |
| 40 | ro_bind_dirs = ['/usr', '/lib', '/lib64', '/bin', '/sbin', cwd] | 40 | ro_bind_dirs = ['/usr', '/lib', '/lib64', '/bin', '/sbin', '/etc/alternatives', cwd] |
| 41 | for bind_dir in ro_bind_dirs: | 41 | for bind_dir in ro_bind_dirs: |
| 42 | if os.path.isdir(bind_dir): # pragma: no cover | 42 | if os.path.isdir(bind_dir): # pragma: no cover |
| 43 | ro_bind_args.extend(['--ro-bind', bind_dir, bind_dir]) | 43 | ro_bind_args.extend(['--ro-bind', bind_dir, bind_dir]) |
