summaryrefslogtreecommitdiffstats
path: root/10-fedora-livecd-base.conf
blob: 3e3f207d75838b3408b910907dde2c96be1ec09e (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash

# livecd configuration for Base Fedora system

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA


case $1 in
    # inquire what packages to install; prints package list on stdout
    pkgadd)
	echo "
bash
kernel
passwd
shadow-utils
rpm
yum
openssh-clients
rsync
tree
wget
man
rootfiles
dhclient
cpuspeed
fedora-logos
file
tree
selinux-policy
selinux-policy-targeted
grub
sudo
"
	;;

    # run configuration scripts when all packages are installed
    post)
	mkdir -p /etc/sysconfig

	cat <<EOF > /etc/sysconfig/clock
ZONE="America/New_York"
UTC=true
ARC=false
EOF

	cat <<EOF > /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
EOF

	cat <<EOF > /etc/resolv.conf
EOF

	cat <<EOF > /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain   localhost
::1       localhost.localdomain   localhost
EOF

	cat <<EOF > /etc/sysconfig/i18n
LANG="en_US.UTF-8"
EOF

	cat <<EOF > /etc/sysconfig/keyboard
KEYBOARDTYPE="pc"
KEYTABLE="us"
EOF
	pwconv
	passwd -d root
	;;

    # run when an livecd install is complete to clean up
    install-post)
	;;

    # run when an livecd install is complete; must prints packages to remove
    install-pkgrem)
echo "
fedora-livecd
"
	;;
esac