diskimage-builder/elements/centos7/pre-install.d/01-yum-repos
Pino Toscano 7c74084eca centos/centos7: switch to epel element
Instead of manually creating epel.repo files, make use of the epel
element, which will properly install epel-release.

Change-Id: Iea7b389bc1ade716c622fd39d5e7dcf119dcb447
2015-05-06 15:50:09 +02:00

17 lines
299 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
cat << EOF > /etc/yum.repos.d/centos7-latest.repo
[centos7]
name=centos7
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=\$basearch&repo=os&infra=\$infra
enabled=1
metadata_expire=7d
gpgcheck=0
EOF