Remove 03-centos-rt element - the rt repo no longer exists
http://mirror.centos.org/centos-7/7/ no longer has an rt repo. This element is causing image builds to fail on all centos-7 platforms. Change-Id: I7f492d314cf452daaebaeb1d1cf4383511588964 Closes-Bug: #1904483
This commit is contained in:
parent
be158ac047
commit
8a2fa38ec1
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/bash -x
|
|
||||||
|
|
||||||
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
||||||
set -x
|
|
||||||
fi
|
|
||||||
set -eu
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
if [[ "$DISTRO_NAME" == *"centos"* ]]; then
|
|
||||||
current_rt_repo=$(yum repolist all|grep "centos7-rt" |awk '{print $1}'| head -n 1 || true)
|
|
||||||
if [[ "$current_rt_repo" == "" ]]; then
|
|
||||||
cat << EOF > /etc/yum.repos.d/centos7-rt.repo
|
|
||||||
[centos7-rt]
|
|
||||||
name=CentOS 7 - Realtime
|
|
||||||
baseurl=http://mirror.centos.org/centos/7/rt/x86_64/
|
|
||||||
enabled=1
|
|
||||||
gpgcheck=0
|
|
||||||
EOF
|
|
||||||
else
|
|
||||||
yum-config-manager --enable $current_rt_repo
|
|
||||||
fi
|
|
||||||
fi
|
|
Loading…
Reference in New Issue