Hi,
I'd like to manipulate yum repo files in the %post section of my
kickstarts, specifically to disable repos that are being provided
through local mirrors.
I've knocked together some python code that does this:
http://robinbowes.com/article.php/20081026162228424
Sample usage:
initool --file /etc/yum.repos.d/epel.repo --section epel --option enabled=0
initool --file /etc/yum.repos.d/epel.repo --section epel --del priority
My question: what's the best way to make this available to a kickstart?
Is there anything cobbler can do, or do I need to do something like:
echo > /tmp/initool << \EOF
# script goes here
...
EOF
chmod +x /tmp/initool
R.