Skip to content

Commit

Permalink
Install using info from the CentOS vaults
Browse files Browse the repository at this point in the history
The mirrors no longer contain the info to do an install.
  • Loading branch information
casr committed Jan 16, 2014
1 parent 52bff75 commit 22c42d5
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions ks.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,46 @@ reboot

set -x

alias yum='yum --releasever=6.4'
cat <<EOM >>/etc/yum.repos.d/CentOS-Vault.repo
#-----------------

[C6.4-base]
name=CentOS-6.4 - Base
baseurl=http://vault.centos.org/6.4/os/\$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.4-updates]
name=CentOS-6.4 - Updates
baseurl=http://vault.centos.org/6.4/updates/\$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.4-extras]
name=CentOS-6.4 - Extras
baseurl=http://vault.centos.org/6.4/extras/\$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.4-contrib]
name=CentOS-6.4 - Contrib
baseurl=http://vault.centos.org/6.4/contrib/\$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.4-centosplus]
name=CentOS-6.4 - CentOSPlus
baseurl=http://vault.centos.org/6.4/centosplus/\$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
EOM
alias yum='yum --releasever=6.4 --disablerepo=base,extras,updates --enablerepo=C6.4-base,C6.4-extras,C6.4-updates'


echo %_install_langs en_US.utf8 >> /etc/rpm/macros

Expand Down Expand Up @@ -138,7 +177,7 @@ cat <<EOM >/etc/rc.local

touch /var/lock/subsys/local

alias yum='yum --releasever=6.4'
alias yum='yum --releasever=6.4 --disablerepo=base,extras,updates --enablerepo=C6.4-base,C6.4-extras,C6.4-updates'

# If the kernel has been upgraded, remove old versions.
package-cleanup -y --oldkernel --count=1
Expand Down

0 comments on commit 22c42d5

Please sign in to comment.