Hi,
I use this simple sed script in a kickstart snippet to turn off the mirrors:


# Disable CentOS Base repos
cat > /tmp/sed.txt <<EOF
/gpgcheck/ {
    n
    /enabled/! {
        i\enabled=0
    }
}
EOF
sed -i -f /tmp/sed.txt /etc/yum.repos.d/CentOS-Base.repo


Give it a try... ;-)

Bye,
  Marco



On -28163-01--10 20:59, rob morrien wrote:
Hello,


At this moment i use on most off my systems centos 5 and higher.

Every time when we kickstart a machine we have to update the file
CentOS-Base.repo and add the line enabled=0 , to turn off the mirrors for
the yum process.

Has somebody make a script for this ?
If so can we have this available?

regards rob



--
 -----------------------------------
|Marco Giunta - SISSA Computer Staff|
|Via Bonomea, 265                   |
|34136 - Trieste, Italy             |
|Tel: +39-40-3787-503               |
|Fax: +39-040-3787-528              |
|e-mail: giunta AT sissa.it         |
 -----------------------------------

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to