#raw %post # Overwrite sl.repo so local repo mirror is used rm /etc/yum.repos.d/sl-other.repo # fill file using here-doc with parameter sub turned off cat > /etc/yum.repos.d/sl.repo << 'ENDSLREPO' # Written by kickstart. Use local mirrors. [sl] name=Scientific Linux $releasever - $basearch baseurl=http://mirror.msulocal/mirror/scientific/$releasever/$basearch/os enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern [sl-security] name=Scientific Linux $releasever - $basearch - security updates baseurl=http://mirror.msulocal/mirror/scientific/$releasever/$basearch/updates/security enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern ENDSLREPO chmod 644 /etc/yum.repos.d/sl.repo # add the AGLT2 repo cat > /etc/yum.repos.d/aglt2.repo << 'ENDAGLT2REPO' [aglt2] name=AGLT2 $releasever - $basearch baseurl=http://mirror.msulocal/mirror/aglt2/$releasever/$basearch enabled=1 gpgcheck=0 [aglt2-testing] name=AGLT2 Testing $releasever - $basearch baseurl=http://mirror.msulocal/mirror/aglt2/testing/$releasever/$basearch enabled=0 gpgcheck=0 ENDAGLT2REPO chmod 644 /etc/yum.repos.d/aglt2.repo %end #end raw