From 1bbb55e672e38a5e479eb6b7521357ac90f90ca0 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Nov 18 2021 10:06:43 +0000 Subject: PR#3130: runroot: use --chroot instead of chroot mock command Merges #3130 https://pagure.io/koji/pull-request/3130 --- diff --git a/plugins/builder/runroot.py b/plugins/builder/runroot.py index 67c9370..bceed7e 100644 --- a/plugins/builder/runroot.py +++ b/plugins/builder/runroot.py @@ -210,7 +210,7 @@ class RunRootTask(koji.tasks.BaseTaskHandler): self.do_mounts(rootdir, [self._get_path_params(x) for x in self.config['default_mounts']]) self.do_extra_mounts(rootdir, mounts) - mock_cmd = ['chroot'] + mock_cmd = [] if new_chroot: mock_cmd.append('--new-chroot') elif new_chroot is False: # None -> no option added @@ -220,7 +220,7 @@ class RunRootTask(koji.tasks.BaseTaskHandler): # chroot one myarch = platform.uname()[5] mock_cmd.extend(['--arch', myarch]) - mock_cmd.append('--') + mock_cmd.extend(['--chroot', '--']) mock_cmd.extend(cmdargs) rv = broot.mock(mock_cmd) log_paths = ['builddir/runroot.log']