3 # (c) Michael Goetze, 2010-2011, mgoetze@mgoetze.net
5 error
=0; trap 'error=$(($?>$error?$?:$error))' ERR
# save maximum error code
7 if [ $FAI_ACTION = "install" ]; then
9 [ -L $target/etc
/mtab
] ||
cp /etc
/mtab
$target/etc
/mtab
11 cat > $target/etc
/sysconfig
/network
<<-EOF
13 HOSTNAME=$HOSTNAME.$DOMAIN
15 echo "127.0.0.1 localhost" > $target/etc
/hosts
16 ifclass DHCPC || ainsl
-s /etc
/hosts
"$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME"
17 cp /etc
/resolv.conf
$target/etc
20 fcopy
-riv /etc
/yum.repos.d
/
22 # disable the fastestmirror plugin
23 #fai-sed 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf