File: repository.ROCKY

package info (click to toggle)
fai 6.5.6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,076 kB
  • sloc: sh: 6,720; perl: 5,622; makefile: 138
file content (27 lines) | stat: -rwxr-xr-x 697 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash

# (c) Michael Goetze, 2010-2011, mgoetze@mgoetze.net

error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code

if [ $FAI_ACTION = "install" ]; then
    ctam
    [ -L $target/etc/mtab ] || cp /etc/mtab $target/etc/mtab

    cat > $target/etc/sysconfig/network <<-EOF
		NETWORKING=yes
		HOSTNAME=$HOSTNAME.$DOMAIN
		EOF
    echo "127.0.0.1 localhost" > $target/etc/hosts
    ifclass DHCPC || ainsl -s /etc/hosts "$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME"
    cp /etc/resolv.conf $target/etc
fi

fcopy -riv /etc/yum.repos.d/

# disable the fastestmirror plugin
#fai-sed 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf

skiptask repository

exit $error