Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1686945 - Modern Fedora and RHEL8 beta need config_opts['use_bootstrap_container'] = True
Summary: Modern Fedora and RHEL8 beta need config_opts['use_bootstrap_container'] = True
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: epel7
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2019-03-08 17:36 UTC by Pat Riehecky
Modified: 2019-04-16 10:03 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Pat Riehecky 2019-03-08 17:36:48 UTC
Description of problem:
When using mock on an EL7 host and trying to build a Fedora 28+ chroot, the config needs to add config_opts['use_bootstrap_container'] = True

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Install mock on an EL7 system
2.mock -r rhelbeta-8-x86_64 --init

Actual results:
fails due to new RPM features

Expected results:
Enable the bootstrap container by default for those profiles in EPEL7

Additional info:

Comment 1 Miroslav Suchý 2019-03-11 13:21:15 UTC
Yes, that is true. But the solution is not easy - it will be either pain to maintain or very hard to code. The great approach - to use host configs is discussed here:

Comment 2 Pat Riehecky 2019-03-12 14:23:36 UTC
I was thinking a fairly simple %if within the specfile.... something like

%if 0%{?rhel} < 8
echo "config_opts['use_bootstrap_container'] = True" >> fedora_whatever_.cfg

That should keep the maintenance fairly low and provide the expected behavior.

Note You need to log in before you can comment on or make changes to this bug.