mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Pass --unshare-net to bwrap when building with --external-sources
Ensures that when `--external-sources` is used, the build does not require a working internet connection. `--unshare-net` is always passed for the sysa phase.
This commit is contained in:
parent
343843dfdd
commit
c143e65154
2 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ import sys
|
|||
|
||||
def run(*args, **kwargs):
|
||||
"""A small wrapper around subprocess.run"""
|
||||
arguments = [str(arg) for arg in args]
|
||||
arguments = [str(arg) for arg in args if arg is not None]
|
||||
|
||||
if kwargs.pop('verbose', False):
|
||||
print(arguments)
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ print(shutil.which('chroot'))
|
|||
run('bwrap', '--unshare-user',
|
||||
'--uid', '0',
|
||||
'--gid', '0',
|
||||
'--unshare-net',
|
||||
'--clearenv',
|
||||
'--setenv', 'PATH', '/usr/bin',
|
||||
'--bind', system_a.tmp_dir, '/',
|
||||
|
|
@ -187,6 +188,7 @@ print(shutil.which('chroot'))
|
|||
run('bwrap', '--unshare-user',
|
||||
'--uid', '0',
|
||||
'--gid', '0',
|
||||
'--unshare-net' if args.external_sources else None,
|
||||
'--clearenv',
|
||||
'--setenv', 'PATH', '/usr/bin',
|
||||
'--bind', system_a.tmp_dir + "/sysc_image", '/',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue