From 5f9fbf660e4bbf6486d0d45a35b78803681054ec Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Nov 18 2021 10:05:34 +0000 Subject: runroot: use --chroot instead of chroot mock command Former is no officially supported anymore Fixes: https://pagure.io/koji/issue/3133 --- 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']