Subversion Repositories livecd

Rev

Rev 250 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 250 Rev 256
1
###############################################################
1
###############################################################
2
#
2
#
3
# Configuration file for the LiveCD build scripts
3
# Configuration file for the LiveCD build scripts
4
# 
4
# 
5
# This file will be sourced
5
# This file will be sourced
6
#
6
#
7
# Urs Beyerle
7
# Urs Beyerle
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
# Change it to "2.6.9-42.0.3.EL" for example, if you are 
13
# building the LiveCD with a different kernel than the one 
13
# building the LiveCD with a different kernel than the one 
14
# you are actually running
14
# you are actually running
15
# 
15
# 
16
# if the SMP version of the $KERNEL is installed, 
16
# if the SMP version of the $KERNEL is installed, 
17
# it will be also included in the LiveCD
17
# it will be also included in the LiveCD
18
#KERNEL="`uname -r`"
18
#KERNEL="`uname -r`"
19
#KERNEL=2.6.9-42.0.3.EL
19
#KERNEL=2.6.9-42.0.3.EL
20
KERNEL=2.6.18-194.el5
20
KERNEL=2.6.18-194.3.1.el5
21
 
21
 
22
# Define $OS_RELEASE: 
22
# Define $OS_RELEASE: 
23
#  For SL4, RHEL4, CentOS4 -> OS_RELEASE=4
23
#  For SL4, RHEL4, CentOS4 -> OS_RELEASE=4
24
#  For SL5, RHEL5, CentOS5 -> OS_RELEASE=5
24
#  For SL5, RHEL5, CentOS5 -> OS_RELEASE=5
25
OS_RELEASE=5
25
OS_RELEASE=5
26
 
26
 
27
# Define $OS_UPDATE
27
# Define $OS_UPDATE
28
#  For example for SL 5.2 set OS_UPDATE=2
28
#  For example for SL 5.2 set OS_UPDATE=2
29
OS_UPDATE=5
29
OS_UPDATE=5
30
 
30
 
31
# Define LiveCD OS string (can be anything you like)
31
# Define LiveCD OS string (can be anything you like)
32
LIVECD_OS="SL${OS_RELEASE}${OS_UPDATE}"
32
LIVECD_OS="SL${OS_RELEASE}${OS_UPDATE}"
33
 
33
 
34
# Name of the default changes folder
34
# Name of the default changes folder
35
#CHANGESFOLDER=changes
35
#CHANGESFOLDER=changes
36
CHANGESFOLDER=${LIVECD_OS}changes 
36
CHANGESFOLDER=${LIVECD_OS}changes 
37
 
37
 
38
# Name of initrd image (do not change this)
38
# Name of initrd image (do not change this)
39
INITRDIMG=initrd
39
INITRDIMG=initrd
40
 
40
 
41
# Define blocksize of initrd
41
# Define blocksize of initrd
42
INITRD_BLOCKSIZE=1024
42
INITRD_BLOCKSIZE=1024
43
[ "$OS_RELEASE" = "5" ] && INITRD_BLOCKSIZE=4096
43
[ "$OS_RELEASE" = "5" ] && INITRD_BLOCKSIZE=4096
44
 
44
 
45
# Compressed directories (img) will be stored here
45
# Compressed directories (img) will be stored here
46
# (the whole folder will be erased in advanced!)
46
# (the whole folder will be erased in advanced!)
47
CDDATA=/tmp/live_data_$$
47
CDDATA=/tmp/live_data_$$
48
 
48
 
49
# Define default runlevel for your LiveCD
49
# Define default runlevel for your LiveCD
50
RUNLEVEL=5
50
RUNLEVEL=5
51
 
51
 
52
# Name of local user
52
# Name of local user
53
LOCALUSER=sluser
53
LOCALUSER=sluser
54
 
54
 
55
# Default hostname
55
# Default hostname
56
DEFAULT_HOSTNAME=slinux
56
DEFAULT_HOSTNAME=slinux
57
 
57
 
58
# The size of the RAM disk (in KBytes)
58
# The size of the RAM disk (in KBytes)
59
# normally you do not have to change this
59
# normally you do not have to change this
60
RAM0SIZE=10000
60
RAM0SIZE=10000
61
 
61
 
62
# To be save, we use RAM0SIZE * 5 for ramdisk_size boot option
62
# To be save, we use RAM0SIZE * 5 for ramdisk_size boot option
63
RAMDISK_SIZE=$(( $RAM0SIZE * 5 ))
63
RAMDISK_SIZE=$(( $RAM0SIZE * 5 ))
64
 
64
 
65
# Define default boot options
65
# Define default boot options
66
# normally you do not have to change this
66
# normally you do not have to change this
67
BOOT_OPTIONS="max_loop=32 ramdisk_size=$RAMDISK_SIZE root=/dev/ram0 rw"
67
BOOT_OPTIONS="max_loop=32 ramdisk_size=$RAMDISK_SIZE root=/dev/ram0 rw"
68
 
68
 
69
# Add vga=791 for SL4
69
# Add vga=791 for SL4
70
[ "$OS_RELEASE" = "4" ] && BOOT_OPTIONS="$BOOT_OPTIONS vga=791"
70
[ "$OS_RELEASE" = "4" ] && BOOT_OPTIONS="$BOOT_OPTIONS vga=791"
71
 
71
 
72
# Add rhgb for SL5 ?
72
# Add rhgb for SL5 ?
73
# [ "$OS_RELEASE" = "5" ] && BOOT_OPTIONS="$BOOT_OPTIONS rhgb"
73
# [ "$OS_RELEASE" = "5" ] && BOOT_OPTIONS="$BOOT_OPTIONS rhgb"
74
 
74
 
75
 
75
 
76
# Define extra boot parameters, for example: pw=mypassword kb=us
76
# Define extra boot parameters, for example: pw=mypassword kb=us
77
# for more, see http://www.livecd.ethz.ch/parameter.html
77
# for more, see http://www.livecd.ethz.ch/parameter.html
78
#EXTRA_BOOT_OPTIONS="nopasswd kb=sg-latin1"
78
#EXTRA_BOOT_OPTIONS="nopasswd kb=sg-latin1"
79
EXTRA_BOOT_OPTIONS=""
79
EXTRA_BOOT_OPTIONS=""
80
 
80
 
81
# Define failsafe boot option
81
# Define failsafe boot option
82
# used if you boot with label "failsafe"
82
# used if you boot with label "failsafe"
83
FAILSAFE_BOOT_OPTIONS="nonet simplex apm=off acpi=off noapic nofstab"
83
FAILSAFE_BOOT_OPTIONS="nonet simplex apm=off acpi=off noapic nofstab"
84
 
84
 
85
# Define default desktop windows manager and default login manager
85
# Define default desktop windows manager and default login manager
86
# (will be put in /etc/sysconfig/desktop)
86
# (will be put in /etc/sysconfig/desktop)
87
#DESKTOP=KDE
87
#DESKTOP=KDE
88
#DISPLAYMANAGER=GNOME
88
#DISPLAYMANAGER=GNOME
89
 
89
 
90
# Services which are off (not running) on the LiveCD
90
# Services which are off (not running) on the LiveCD
91
SERVICES_OFF="microcode_ctl yum xinetd afs rhnsd nfslock ip6tables \
91
SERVICES_OFF="microcode_ctl yum xinetd afs rhnsd nfslock ip6tables \
92
              mdmonitor mdmpd hpoj sendmail sshd portmap snmptrapd \
92
              mdmonitor mdmpd hpoj sendmail sshd portmap snmptrapd \
93
              snmpd smartd cups-config-daemon sysstat lm_sensors exim \
93
              snmpd smartd cups-config-daemon sysstat lm_sensors exim \
94
              ntpd httpd irqbalance firstboot clamd yum-updatesd kdump \
94
              ntpd httpd irqbalance firstboot clamd yum-updatesd kdump \
95
              auditd rpcidmapd autofs ricci modclusterd xend xendomains"
95
              auditd rpcidmapd autofs ricci modclusterd xend xendomains"
96
 
96
 
97
# Services which are on (running) on the LiveCD
97
# Services which are on (running) on the LiveCD
98
[ "$OS_RELEASE" = "4" ] && SERVICES_ON="apmd acpid pcmcia haldaemon autofs"
98
[ "$OS_RELEASE" = "4" ] && SERVICES_ON="apmd acpid pcmcia haldaemon autofs"
99
[ "$OS_RELEASE" = "5" ] && SERVICES_ON="apmd acpid pcmcia haldaemon \
99
[ "$OS_RELEASE" = "5" ] && SERVICES_ON="apmd acpid pcmcia haldaemon \
100
                                        NetworkManager NetworkManagerDispatcher"
100
                                        NetworkManager NetworkManagerDispatcher"
101
 
101
 
102
# Most probably the LiveCD will not boot with SELinux enabled !  
102
# Most probably the LiveCD will not boot with SELinux enabled !  
103
# SELinux can also be disabled with boot parameter "enforcing=0"
103
# SELinux can also be disabled with boot parameter "enforcing=0"
104
SELINUX=disabled
104
SELINUX=disabled
105
#BOOT_OPTIONS="$BOOT_OPTIONS enforcing=0"
105
#BOOT_OPTIONS="$BOOT_OPTIONS enforcing=0"
106
 
106
 
107
# Set the root password after building the LiveCD
107
# Set the root password after building the LiveCD
108
# (done in restore-system.sh)
108
# (done in restore-system.sh)
109
#SET_ROOTPWD=yes
109
#SET_ROOTPWD=yes
110
 
110
 
111
# LiveCD Label (can be anything you like)
111
# LiveCD Label (can be anything you like)
112
CDLABEL="${LIVECD_OS}LIVECD"
112
CDLABEL="${LIVECD_OS}LIVECD"