Bug 1657150
Summary: | dnf not using repos from the host system with --installroot | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Karel Srot <ksrot> |
Component: | dnf | Assignee: | Jaroslav Mracek <jmracek> |
Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 8.0 | CC: | dmach, james.antill, jmracek, ksrot, kwalker, msuchy |
Target Milestone: | rc | Keywords: | Regression, Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-12-12 12:19:42 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Karel Srot
2018-12-07 09:26:06 UTC
The problem was previously reported in https://bugzilla.redhat.com/show_bug.cgi?id=1582535. Please check discussion there and in PR https://github.com/rpm-software-management/dnf/pull/1191 where there are arguments that confirms that the current behavior of DNF is correct. I also check a documentation and I found that work-around is well described and difference is also described in yum-dnf differences chapter. See: - *config file* and :ref:`reposdir <reposdir-label>` are searched inside the installroot first. If they are not present, they are taken from host system. Note: When a path is specified within command line argument (``--config=<config file>`` in case of *config file* and ``--setopt=reposdir=<reposdir>`` for *reposdir*) then this path is always related to the host with no exceptions. Do you think that the bug report is still relevant? Yes, it is still relevant because the dnf man page (and also upstream doc) are misleading in statement: "config file and reposdir are searched inside the installroot first. If they are not present, they are taken from host system." This documentation should be updated at least with additional information explaining that the above applies only to the 1st command issued and once the $installroot/etc/yum.repos.d/ directory exist the host system repos are not used, along with a justification for that. Please if you can provide a formulation that would satisfy you it would be great. Thanks a lot. Well, I would need to know what is the current behaviour first. Does the statement above still apply for config files? The man page for installroot option is according to dnf behavior. Therefore I believe that the bug is resolved. Please is there anything what has to be changed? |