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

run-in-sysroot: Copy host /etc/passwd, /etc/group


Otherwise, any test that refers to the username or home directory will
fail with a warning. Prior to GLib 2.35.9 (in particular, in GLib 2.32)
this happens in g_get_any_init_do(), which is also called to get the
TMPDIR, so any test that wants to create a temporary directory will
fail like this.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent d25f0710
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,8 @@ def main():
os.path.join(abs_sysroot, 'var', 'lib', 'apt'),
'/var/lib/apt',
'--dev-bind', '/dev', '/dev',
'--ro-bind', '/etc/group', '/etc/group',
'--ro-bind', '/etc/passwd', '/etc/passwd',
'--ro-bind', '/etc/resolv.conf', '/etc/resolv.conf',
'--proc', '/proc',
'--tmpfs', '/tmp',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment