Subversion Repositories livecd

Rev

Rev 100 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 100 Rev 105
Line 7... Line 7...
7
# Urs Beyerle, PSI
7
# Urs Beyerle, PSI
8
#
8
#
9
###############################################################
9
###############################################################
10
 
10
 
11
# KERNEL = Kernel version of the LiveCD. 
11
# KERNEL = Kernel version of the LiveCD. 
-
 
12
# Change it to "2.6.9-42.0.3.EL" for example, if you are 
12
# Can be a different kernel than the one you are actually running
13
# building the LiveCD with a different kernel than the one 
-
 
14
# you are actually running
-
 
15
# 
13
# If the SMP version of the $KERNEL is installed, 
16
# if the SMP version of the $KERNEL is installed, 
14
# it will also be included in the LiveCD
17
# it will also be included in the LiveCD
15
[ "$OS_RELEASE" = "4" ] && KERNEL=2.6.9-55.0.2.EL
-
 
16
[ "$OS_RELEASE" = "5" ] && KERNEL=2.6.18-8.1.8.el5
-
 
17
#KERNEL="`uname -r`"
18
#KERNEL="`uname -r`"
-
 
19
KERNEL=2.6.9-55.0.6.EL
-
 
20
#KERNEL=2.6.18-1.2747.el5
18
 
21
 
19
# The OS release $OS_RELEASE is defined by the following option: 
22
# The OS release $OS_RELEASE is defined by following option: 
20
# -sl4  -> for SL4, RHEL4, CentOS4 -> OS_RELEASE=4
23
# -sl4  -> for SL4, RHEL4, CentOS4 -> OS_RELEASE=4
21
# -sl5  -> for SL5, RHEL5, CentOS5 -> OS_RELEASE=5
24
# -sl5  -> for SL5, RHEL5, CentOS5 -> OS_RELEASE=5
22
 
25
 
23
# Name of initrd image (do not change this)
26
# name of initrd image (do not change this)
24
INITRDIMG=initrd
27
INITRDIMG=initrd
25
 
28
 
26
# Define blocksize of initrd
29
# define blocksize of initrd
27
INITRD_BLOCKSIZE=1024
30
INITRD_BLOCKSIZE=1024
28
[ "$OS_RELEASE" = "5" ] && INITRD_BLOCKSIZE=4096
31
[ "$OS_RELEASE" = "5" ] && INITRD_BLOCKSIZE=4096
29
 
32
 
30
# Compressed directories (img) will be stored here
33
# compressed directories (img) will be stored here
31
# (the whole folder will be erased in advanced!)
34
# (the whole folder will be erased in advanced!)
32
CDDATA=/tmp/live_data_$$
35
CDDATA=/tmp/live_data_$$
33
 
36
 
34
# Define default runlevel for your LiveCD
37
# Define default runlevel for your LiveCD
35
RUNLEVEL=5
38
RUNLEVEL=5
Line 42... Line 45...
42
 
45
 
43
# The size of the RAM disk (in KBytes)
46
# The size of the RAM disk (in KBytes)
44
# normally you do not have to change this
47
# normally you do not have to change this
45
RAM0SIZE=10000
48
RAM0SIZE=10000
46
 
49
 
47
# To be save, we use RAM0SIZE * 5 for ramdisk_size boot option
50
# to be save, we use RAM0SIZE * 5 for ramdisk_size boot option
48
RAMDISK_SIZE=$(( $RAM0SIZE * 5 ))
51
RAMDISK_SIZE=$(( $RAM0SIZE * 5 ))
49
 
52
 
50
# Define default boot options
53
# Define default boot options
51
# normally you do not have to change this
54
# normally you do not have to change this
52
BOOT_OPTIONS="max_loop=32 ramdisk_size=$RAMDISK_SIZE root=/dev/ram0 rw"
55
BOOT_OPTIONS="max_loop=32 ramdisk_size=$RAMDISK_SIZE root=/dev/ram0 rw"
53
 
56
 
54
# Add vga=791 for SL4
57
# add vga=791 for SL4
55
[ "$OS_RELEASE" = "4" ] && BOOT_OPTIONS="$BOOT_OPTIONS vga=791"
58
[ "$OS_RELEASE" = "4" ] && BOOT_OPTIONS="$BOOT_OPTIONS vga=791"
56
 
59
 
57
# Define extra boot parameters, for example: pw=mypassword kb=us
60
# Define extra boot parameters, for example: pw=mypassword kb=us
58
# for more, see http://linux.web.psi.ch/livecd/parameter.html
61
# for more, see http://linux.web.psi.ch/livecd/parameter.html
59
#EXTRA_BOOT_OPTIONS="nopasswd kb=sg-latin1"
62
#EXTRA_BOOT_OPTIONS="nopasswd kb=sg-latin1"
60
#EXTRA_BOOT_OPTION="rhgb"
63
#EXTRA_BOOT_OPTION="rhgb"
61
 
64
 
62
# Define failsafe boot option
65
# Define failsafe boot option
63
# used if you boot with label "failsafe"
66
# used if you boot with label "failsafe"
64
FAILSAFE_BOOT_OPTIONS="nonet simplex apm=off acpi=off noapic nofstab"
67
FAILSAFE_BOOT_OPTIONS="nonet simplex apm=off acpi=off nofstab"
65
 
68
 
66
# Define default desktop windows manager and default login manager
69
# Define default desktop windows manager and default login manager
67
# (will be put in /etc/sysconfig/desktop)
70
# (will be put in /etc/sysconfig/desktop)
68
#DESKTOP=KDE
71
#DESKTOP=KDE
69
#DISPLAYMANAGER=GNOME
72
#DISPLAYMANAGER=GNOME
Line 71... Line 74...
71
# Services which are off (not running) on the LiveCD
74
# Services which are off (not running) on the LiveCD
72
SERVICES_OFF="microcode_ctl cups yum xinetd afs rhnsd nfslock ip6tables \
75
SERVICES_OFF="microcode_ctl cups yum xinetd afs rhnsd nfslock ip6tables \
73
              mdmonitor mdmpd hpoj sendmail sshd portmap snmptrapd \
76
              mdmonitor mdmpd hpoj sendmail sshd portmap snmptrapd \
74
              snmpd smartd cups-config-daemon sysstat lm_sensors exim \
77
              snmpd smartd cups-config-daemon sysstat lm_sensors exim \
75
              ntpd httpd irqbalance firstboot clamd yum-updatesd kdump \
78
              ntpd httpd irqbalance firstboot clamd yum-updatesd kdump \
76
              auditd rpcidmapd autofs ricci modclusterd xend xendomains"
79
              auditd"
77
 
80
 
78
# Services which are on (running) on the LiveCD
81
# Services which are on (running) on the LiveCD
79
[ "$OS_RELEASE" = "4" ] && SERVICES_ON="apmd acpid pcmcia haldaemon autofs"
82
SERVICES_ON="apmd acpid pcmcia haldaemon autofs"
80
[ "$OS_RELEASE" = "5" ] && SERVICES_ON="apmd acpid pcmcia haldaemon \
-
 
81
                                        NetworkManager NetworkManagerDispatcher"
-
 
82
 
83
 
83
# Most probably the LiveCD will not boot with SELinux enabled !  
84
# Most probably the LiveCD will not boot with SELinux enabled !  
84
# SELinux can also be disabled with boot parameter "enforcing=0"
85
# SELinux can also be disabled with boot parameter "enforcing=0"
85
SELINUX=disabled
86
SELINUX=disabled
86
#BOOT_OPTIONS="$BOOT_OPTIONS enforcing=0"
87
#BOOT_OPTIONS="$BOOT_OPTIONS enforcing=0"