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

sysroot: Bind-mount /var/lib/apt rw so that we can update


In particular this makes it possible to `apt-get download bubblewrap`
if it isn't already in the container.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 0c5e1341
No related branches found
No related tags found
No related merge requests found
...@@ -161,6 +161,7 @@ tarball at `_build/sysroot.tar.gz` or unpack a sysroot into ...@@ -161,6 +161,7 @@ tarball at `_build/sysroot.tar.gz` or unpack a sysroot into
`_build/sysroot`, and prefix those commands with `_build/sysroot`, and prefix those commands with
`./sysroot/run-in-sysroot.py`: `./sysroot/run-in-sysroot.py`:
./sysroot/run-in-sysroot.py apt-get update
./sysroot/run-in-sysroot.py meson ... ./sysroot/run-in-sysroot.py meson ...
(Or put them in different locations and pass the `--sysroot` and (Or put them in different locations and pass the `--sysroot` and
......
...@@ -99,6 +99,9 @@ def main(): ...@@ -99,6 +99,9 @@ def main():
[ [
'bwrap', 'bwrap',
'--ro-bind', abs_sysroot, '/', '--ro-bind', abs_sysroot, '/',
'--bind',
os.path.join(abs_sysroot, 'var', 'lib', 'apt'),
'/var/lib/apt',
'--dev-bind', '/dev', '/dev', '--dev-bind', '/dev', '/dev',
'--ro-bind', '/etc/resolv.conf', '/etc/resolv.conf', '--ro-bind', '/etc/resolv.conf', '/etc/resolv.conf',
'--proc', '/proc', '--proc', '/proc',
......
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