Subversion Repositories livecd

Rev

Rev 269 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 269 Rev 270
Line 30... Line 30...
30
 -libhugetlbfs
30
 -libhugetlbfs
31
 -microcode_ctl
31
 -microcode_ctl
32
 -psacct
32
 -psacct
33
 -quota
33
 -quota
34
@core
34
@core
35
@fonts
35
#@fonts
-
 
36
dejavu-fonts-common
-
 
37
dejavu-sans-fonts
-
 
38
dejavu-sans-mono-fonts
-
 
39
dejavu-serif-fonts
-
 
40
fontpackages-filesystem
-
 
41
xorg-x11-fonts-misc
36
@graphical-admin-tools
42
@graphical-admin-tools
37
@network-file-system-client
43
@network-file-system-client
38
@network-tools
44
@network-tools
39
 #package added to @network-tools
45
 #package added to @network-tools
40
 nmap
46
 nmap
Line 70... Line 76...
70
 
76
 
71
# packages to add
77
# packages to add
72
ibus-gtk
78
ibus-gtk
73
thunderbird
79
thunderbird
74
firefox
80
firefox
75
#@openafs-client
81
@openafs-client
76
 
82
 
77
%end
83
%end
78
 
84
 
79
########################################################################
85
########################################################################
80
#
86
#
Line 100... Line 106...
100
LOGIN_DELAY=15
106
LOGIN_DELAY=15
101
 
107
 
102
EOF_livesysconf
108
EOF_livesysconf
103
 
109
 
104
 
110
 
105
cat > . /etc/init.d/livesys.functions << 'EOF_livesysfunctions'
111
cat > /etc/init.d/livesys.functions << 'EOF_livesysfunctions'
106
###--------------------------------------------------------------------
112
###--------------------------------------------------------------------
107
### livesys functions
113
### livesys functions
108
###--------------------------------------------------------------------
114
###--------------------------------------------------------------------
109
 
115
 
110
# egrep_o is a replacement for "egrep -o". It prints only the last matching text
116
# egrep_o is a replacement for "egrep -o". It prints only the last matching text
Line 266... Line 272...
266
 
272
 
267
if [ -n "\\\$configdone" ]; then
273
if [ -n "\\\$configdone" ]; then
268
  exit 0
274
  exit 0
269
fi
275
fi
270
 
276
 
271
 
-
 
272
## fix various bugs and issues
277
## fix various bugs and issues
273
# unmute sound card
278
# unmute sound card
274
exists alsaunmute 0 2> /dev/null
279
exists alsaunmute 0 2> /dev/null
275
 
280
 
-
 
281
# turn off firstboot for livecd boots
-
 
282
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
-
 
283
 
-
 
284
# turn off services, which are not useful on LiveCD, to preserve resources
-
 
285
chkconfig mdmonitor       off 2>/dev/null
-
 
286
chkconfig setroubleshoot  off 2>/dev/null
-
 
287
chkconfig auditd          off 2>/dev/null
-
 
288
chkconfig crond           off 2>/dev/null
-
 
289
chkconfig atd             off 2>/dev/null
-
 
290
chkconfig readahead_early off 2>/dev/null
-
 
291
chkconfig readahead_later off 2>/dev/null
-
 
292
chkconfig kdump           off 2>/dev/null
-
 
293
chkconfig microcode_ctl   off 2>/dev/null
-
 
294
chkconfig openct          off 2>/dev/null
-
 
295
chkconfig pcscd           off 2>/dev/null
-
 
296
chkconfig postfix         off 2>/dev/null
-
 
297
 
-
 
298
# start afs with option -memcache (is this correct?)
-
 
299
[ -e /etc/sysconfig/afs ] && sed -i "s|^OPTIONS=.*|OPTIONS=\"-memcache\"|" /etc/sysconfig/afs
-
 
300
 
276
# Stopgap fix for RH #217966; should be fixed in HAL instead
301
# Stopgap fix for RH #217966; should be fixed in HAL instead
277
touch /media/.hal-mtab
302
touch /media/.hal-mtab
278
 
303
 
279
# set the LiveCD hostname
304
# set the LiveCD hostname
280
[ ! "\\\$hostname" ] && hostname="livecd.localdomain"
305
[ ! "\\\$hostname" ] && hostname="livecd.localdomain"
Line 504... Line 529...
504
 
529
 
505
chmod 755 /etc/rc.d/init.d/livesys-late
530
chmod 755 /etc/rc.d/init.d/livesys-late
506
/sbin/restorecon /etc/rc.d/init.d/livesys-late
531
/sbin/restorecon /etc/rc.d/init.d/livesys-late
507
/sbin/chkconfig --add livesys-late
532
/sbin/chkconfig --add livesys-late
508
 
533
 
509
# turn off firstboot for livecd boots
-
 
510
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
-
 
511
 
-
 
512
# turn off services, which are not useful on LiveCD, to preserve resources
-
 
513
chkconfig --level 345 mdmonitor       off 2>/dev/null
-
 
514
chkconfig --level 345 setroubleshoot  off 2>/dev/null
-
 
515
chkconfig --level 345 auditd          off 2>/dev/null
-
 
516
chkconfig --level 345 crond           off 2>/dev/null
-
 
517
chkconfig --level 345 atd             off 2>/dev/null
-
 
518
chkconfig --level 345 readahead_early off 2>/dev/null
-
 
519
chkconfig --level 345 readahead_later off 2>/dev/null
-
 
520
chkconfig --level 345 kdump           off 2>/dev/null
-
 
521
chkconfig --level 345 microcode_ctl   off 2>/dev/null
-
 
522
chkconfig --level 345 openct          off 2>/dev/null
-
 
523
chkconfig --level 345 pcscd           off 2>/dev/null
-
 
524
chkconfig --level 345 postfix         off 2>/dev/null
-
 
525
 
-
 
526
# start afs with option -memcache (is this correct?)
-
 
527
[ -e /etc/sysconfig/afs ] && sed -i "s|^OPTIONS=.*|OPTIONS=\"-memcache\"|" /etc/sysconfig/afs
-
 
528
 
-
 
529
# go ahead and pre-make the man -k cache (#455968)
534
# go ahead and pre-make the man -k cache (#455968)
530
/usr/sbin/makewhatis -w
535
/usr/sbin/makewhatis -w
531
 
536
 
532
# save a little bit of space at least...
537
# save a little bit of space at least...
533
rm -f /var/lib/rpm/__db*
538
rm -f /var/lib/rpm/__db*