Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/soas-base.ks
blob: f1ba7e8e2e37b6190d6c2d95ae415209442093aa (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
lang en_US.UTF-8
keyboard us
timezone --utc US/Eastern
auth --useshadow --enablemd5
selinux --disabled
firewall --enabled --service=mdns
xconfig --startxonboot
bootloader --timeout=1
part / --size 2048
services --enabled=NetworkManager,sshd,avahi-daemon --disabled=acpid,auditd,cups,dnsmasq,exim,irda,kerneloops,mdmonitor,netfs,network,nfs,nfslock,nscd,portreserve,rpcbind,rpcgssd,rpcidmapd

# Fedora 11 is out now!
repo --name=F11 --cost=10 --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-11&arch=i386
repo --name=F11-updates --cost=9 --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f11&arch=i386
repo --name=F11-updates-testing --cost=8 --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f11&arch=i386

# Enable if the mirrors aren't up to date yet.
# repo --name=rawhide --baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/i386/os

%packages --excludedocs --instLangs en:es:ar:pl:pt_BR:pt:it:fr:ht:el:mn:mr_IN:th:am_ET:km_KH:ne_NP:ur_PK:rw:ja:de:tr:te:ps:fa_AF:si
@base
@base-x
@core
@hardware-support
kernel
-kernel-PAE

# save some space
-cracklib-dicts
-nss_db
-acpid
-anacron
-mailcap
-nano
-wavpack
-createrepo
-irqbalance
-specspo
-esc
-samba-client
-a2ps
-mpage
-redhat-lsb
-sox
-hplip
-hpijs
-sendmail
-ssmtp
-numactl
-isdn4k-utils
-autofs
-efibootmgr
-grub
-device-mapper-multipath
-dmraid
-fprintd-pam
-microcode_ctl
-pam_krb5
-pam_pkcs11
-pcmciautils

# exclude input methods
-scim*
-m17n*

# dictionaries are big
-aspell-*
-hunspell-*
-man-pages-*
-words

# smartcards won't really work on the livecd.
-coolkey
-ccid

# duplicate functionality
-pinfo
-vorbis-tools
-wget

# lose the compat stuff
-compat*

# qlogic firmwares
-ql2100-firmware
-ql2200-firmware
-ql23xx-firmware
-ql2400-firmware

# scanning takes quite a bit of space :/
-xsane
-xsane-gimp
-sane-backends

# no printing
-system-config-printer
-cups*
-foomatic*
-gutenprint*

# attempt to remove dependencies on perl
-w3m
-logwatch
-lftp
-fbset
-exim
-deltarpm

# remove SELinux stack
-setroubleshoot
-policycoreutils
-policycoreutils-gui
-checkpolicy
-selinux-*
-libselinux-python
-libselinux

# other random stuff
-PackageKit*
-bluez*
-samba*
-*-backgrounds
-compiz-gnome

# strip fedora trademarks and use the soas release package
-fedora-logos
-fedora-release
-fedora-release-notes
generic-logos
generic-release
generic-release-notes

# bits to set up the livecd while anaconda has been removed here
isomd5sum

#tar seems a decent idea
tar

# GNOME dependencies. Listed explicitly to prevent equivalent components
# from other desktops being brought in instead
PolicyKit-gnome
notification-daemon

%end

%post

# workaround avahi segfault (#279301)
touch /etc/resolv.conf
/sbin/restorecon /etc/resolv.conf

# work around for poor key import UI in PackageKit
rm -f /var/lib/rpm/__db*
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

# go ahead and pre-make the man -k cache (#455968)
/usr/sbin/makewhatis -w

# save a little bit of space at least...
rm -f /boot/initrd*
# make sure there aren't core files lying around
rm -f /core*

cat > /etc/X11/xinit/xinitrc.d/000-source-sugar-debug-settings.sh <<FOE
if [ -f ~/.sugar/debug ]; then
   . ~/.sugar/debug
fi
FOE

%end

%post --nochroot
cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL
cp $INSTALL_ROOT/usr/share/doc/HTML/readme-live-image/en_US/readme-live-image-en_US.txt $LIVE_ROOT/README

# only works on x86, x86_64
if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
  if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi
  cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS
fi
%end