#3130 runroot: use --chroot instead of chroot mock command
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji runroot-chroot  into  master

file modified
+2 -2
@@ -210,7 +210,7 @@ 

              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 @@ 

                  # 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']

Former is no officially supported anymore

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

Metadata Update from @jobrauer:
- Pull-request tagged with: testing-done

2 years ago

rebased onto 5f9fbf6

2 years ago

Commit 1bbb55e fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago