On Thu, Jan 16, 2020 at 10:50 AM Ian Pilcher <arequip...@gmail.com> wrote:
>
> On 1/16/20 9:39 AM, Miroslav Suchý wrote:
> > https://github.com/rpm-software-management/mock/wiki/Feature-container-for-bootstrap
>
> Right, but it still doesn't work.
>
> [pilcher@breadbox ~]$ cat /etc/centos-release
> CentOS Linux release 7.7.1908 (Core)
>
> [pilcher@breadbox ~]$ cd /etc/mock/templates
> [pilcher@breadbox templates]$ grep bootstrap_image fedora-31.tpl
> config_opts['bootstrap_image'] = 'fedora:31'
>
> [pilcher@breadbox templates]$ cd
> [pilcher@breadbox ~]$ mock --bootstrap-chroot --use-bootstrap-image -r
> fedora-31-x86_64 thunderbird-68.4.1-1.mzbz1526765.fc31.src.rpm
> INFO: mock.py version 1.4.21 starting (python version = 3.6.8)...

The inserted arguments are order sensitive, and need to be in the
right place in fedora-31.tmpl on the latest release of mock and
mock-core-cnfigs. See my notes at:

    https://github.com/rpm-software-management/mock/issues/390

And use this in /etc/mock/templates/fedora-31.tmpl

    config_opts['bootstrap_image'] = 'fedora:31'
    config_opts['use_bootstrap_image'] = True
    config_opts['use_bootstrap_container'] = True

This uses podman to download an OS image, installs that, uses that to
run mock tools to build a new image, etc. It's a bootstrap process,
it's slow, and I've found it to be burdensome and fragile, not
allowing operation on certain host server filesystems. And no, I don't
remember the list of forbidden filesystems.
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to