8026dda8a0
This is the centos element, which builds CentOS 6. There are a couple of modifications to redhat-common because the version of tar in el6 doesn't support --xattrs-include. There is a change to both pkg-map and svc-map to add 'centos' to the 'redhat' family. Also explicitly have to install cloud-utils growroot and dracut growpart for proper fsresize at instance launch. Also sets the DIB_EXTLINUX variable because there is no grub2 for this distro. Change-Id: Iffd57bce1484c43c2cffcbdb37b602185216e63a
25 lines
498 B
Bash
Executable file
25 lines
498 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/centos6-latest.repo
|
|
[rhel6]
|
|
name=centos6
|
|
baseurl=http://mirror.centos.org/centos/6/os/x86_64/
|
|
enabled=1
|
|
metadata_expire=7d
|
|
gpgcheck=0
|
|
EOF
|
|
|
|
cat << EOF > /etc/yum.repos.d/epel.repo
|
|
[epel]
|
|
name=Extra Packages for Enterprise Linux 6 - \$basearch
|
|
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=\$basearch
|
|
failovermethod=priority
|
|
enabled=1
|
|
gpgcheck=0
|
|
EOF
|