| |
@@ -92,7 +92,7 @@
|
| |
if not path.startswith('/'):
|
| |
raise koji.GenericError("bad config: all paths (default_mounts, safe_roots, path_subs) needs to be absolute: %s" % path)
|
| |
|
| |
- def handler(self, root, arch, command, keep=False, packages=[], mounts=[], repo_id=None, skip_setarch=False, weight=None, upload_logs=None, new_chroot=False):
|
| |
+ def handler(self, root, arch, command, keep=False, packages=[], mounts=[], repo_id=None, skip_setarch=False, weight=None, upload_logs=None, new_chroot=False, nspawn_args=[]):
|
| |
"""Create a buildroot and run a command (as root) inside of it
|
| |
|
| |
Command may be a string or a list.
|
| |
@@ -154,7 +154,8 @@
|
| |
if compat_mode:
|
| |
broot = BuildRoot(root, br_arch, self.id, repo_id=repo_info['id'], setup_dns=True)
|
| |
else:
|
| |
- broot = BuildRoot(self.session, self.options, root, br_arch, self.id, repo_id=repo_info['id'], setup_dns=True)
|
| |
+ broot = BuildRoot(self.session, self.options, root, br_arch, self.id, repo_id=repo_info['id'], setup_dns=True,
|
| |
+ nspawn_args=opts.nspawn_args)
|
| |
broot.workdir = self.workdir
|
| |
broot.init()
|
| |
rootdir = broot.rootdir()
|
| |
For rpm-ostree we need
Which is now exposed via https://github.com/rpm-software-management/mock/pull/35