934a65bc34
openEuler 20.03-LTS-SP2 was out of date in May 2022. 22.03 LTS is the newest LTS version. It was release in March 2022 and will be maintained for 2 years. This patch upgrades the LTS version. It'll be used in Devstack, Kolla-ansible and so on in CI jobs. This patch also enables the YUM mirror to speed up the package download. Change-Id: Iba38570d96374226b924db3aca305f7571643823
5 lines
360 B
Bash
5 lines
360 B
Bash
if [ -n "${DIB_DISTRIBUTION_MIRROR:-}" ]; then
|
|
# Only set the mirror for OS, everything, EPOL and update repositories,
|
|
# The others (debuginfo and source) aren't mirrored since they do not exist on all mirrors
|
|
sed -i "/\(debuginfo\|source\)/! {s#http://repo.openeuler.org#$DIB_DISTRIBUTION_MIRROR#g}" $TARGET_ROOT/etc/yum.repos.d/openEuler.repo
|
|
fi
|