1 # install the SoFS packages via a proxy on the host
2 [ "@@WEBPROXY@@" = "" ] || {
3 http_proxy=@@WEBPROXY@@
7 echo "Using web proxy: \$http_proxy"
9 # force up the network, as kickstart may not have started it
10 /sbin/ifconfig eth0 @@IPBASE@@.@@IPNET0@@.@@FIRSTIP@@ up
11 /sbin/route add default gw @@GATEWAY@@
16 cat << EOF > /etc/resolv.conf
19 nameserver @@NAMESERVER@@
22 echo "Setting up YUM repositories"
24 cat << EOF > /etc/yum.repos.d/autocluster.repo
28 # CentOS has some weird plugins that slow thing down
29 echo "Switching off YUM plugins"
31 sed -i -e 's@^plugins=1@plugins=0@' /etc/yum.conf
33 echo "Updating from YUM repositories"
36 # Leave things in a state that forces any nodes based on this base
37 # image fetch all of the repo data next time an update is done.
40 rm -f /etc/udev/rules.d/70-persistent-net.rules