Skip to content

RPM build: disable the dynamic mirror URLs when using a proxy#603

Merged
OddBloke merged 1 commit into
canonical:stable-19.4from
paride:19.4-rpm-backport-proxy-support
Oct 7, 2020
Merged

RPM build: disable the dynamic mirror URLs when using a proxy#603
OddBloke merged 1 commit into
canonical:stable-19.4from
paride:19.4-rpm-backport-proxy-support

Conversation

@paride
Copy link
Copy Markdown
Contributor

@paride paride commented Oct 7, 2020

When using an http proxy make sure to disable all the dynamic mirror
URLs. In particular:

  • Uncomment the baseurl in /etc/yum.repos.d/*.repo.
  • Comment out the mirrorlist and metalink URLs in *.repo.
  • Replace the dynamic download.fedoraproject.org host with
    dl.fedoraproject.org, which is static.
  • Run the above as part of the MAYBE_RELIABLE_YUM_INSTALL command,
    as installing packages may add new repos (e.g. EPEL).
  • Stop disabling fastestmirror, not needed when doing the above.

…cal#437)

When using an http proxy make sure to disable all the dynamic mirror
URLs. In particular:

 - Uncomment the baseurl in /etc/yum.repos.d/*.repo.
 - Comment out the mirrorlist and metalink URLs in *.repo.
 - Replace the dynamic download.fedoraproject.org host with
   dl.fedoraproject.org, which is static.
 - Run the above as part of the MAYBE_RELIABLE_YUM_INSTALL command,
   as installing packages may add new repos (e.g. EPEL).
 - Stop disabling fastestmirror, not needed when doing the above.
@paride
Copy link
Copy Markdown
Contributor Author

paride commented Oct 7, 2020

Note that the base branch is stable-19.4. This is a cherry-pick from master.

Copy link
Copy Markdown
Collaborator

@OddBloke OddBloke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code here looks good; I've kicked off a CI build of stable-19.4 here to confirm that we see the same CI failures in order to land this.

@OddBloke OddBloke merged commit b80fa21 into canonical:stable-19.4 Oct 7, 2020
@OddBloke
Copy link
Copy Markdown
Collaborator

OddBloke commented Oct 7, 2020

Confirmed that the failures in this branch were the same as those in stable-19.4, so I have landed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants