Skip to content

Element for building previous releases of CentOS 7#27

Merged
oneswig merged 3 commits intomasterfrom
centos7-vault
Mar 24, 2020
Merged

Element for building previous releases of CentOS 7#27
oneswig merged 3 commits intomasterfrom
centos7-vault

Conversation

@oneswig
Copy link
Copy Markdown
Member

@oneswig oneswig commented Jan 22, 2020

Use the CentOS vault and some known build numbers for cloud images and repos.
Modify repos to pin packages at the designated release.

Use the CentOS vault and some known build numbers for cloud images and repos.
Modify repos to pin packages at the designated release.
@oneswig oneswig requested a review from jovial January 22, 2020 23:31
# This assumes a fair amount about the structure of the CentOS-Base repo file.
# Would be nice to use -E "s/^\[(base|updates|extras|centosplus)\]/\[\1_$DIB_CENTOS7_MIRROR_VERSION\]/g"

sed -e "s|^#baseurl=http[s]*://mirror.centos.org/centos|baseurl=$DIB_CENTOS7_MIRROR|" \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess the alternative is to include a current version of CentOS-Vault.repo and update it when there is a new release which you currently need to do anyway due to the switch on DIB_CENTOS7_VERSION.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Is there a CentOS-Vault.repo file published on vault.centos.org? If not I don't think there's a clear advantage that way. This way we can also cope with (eg) internal mirrors or other CentOS repos.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not directly, but you can get it from the latest centos-release package, e.g: http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-release-7-7.1908.0.el7.centos.x86_64.rpm. Like you say though, there probably isn't a massive advantage though.

@oneswig oneswig merged commit aa690bd into master Mar 24, 2020
@oneswig oneswig deleted the centos7-vault branch March 24, 2020 17:15
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