Subversion Repositories livecd

Rev

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

Rev 184 Rev 187
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-92.1.10.el5
20
KERNEL=2.6.9-78.0.1.EL
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=4
26
 
26
 
27
# Define OS_UPDATE (not further used at the moment)
27
# Define OS_UPDATE (not further used at the moment)
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=2
29
OS_UPDATE=7
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 rhgb"
67
BOOT_OPTIONS="max_loop=32 ramdisk_size=$RAMDISK_SIZE root=/dev/ram0 rw rhgb"
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
# Define extra boot parameters, for example: pw=mypassword kb=us
72
# Define extra boot parameters, for example: pw=mypassword kb=us
73
# for more, see http://linux.web.psi.ch/livecd/parameter.html
73
# for more, see http://linux.web.psi.ch/livecd/parameter.html
74
#EXTRA_BOOT_OPTIONS="nopasswd kb=sg-latin1"
74
#EXTRA_BOOT_OPTIONS="nopasswd kb=sg-latin1"
75
EXTRA_BOOT_OPTIONS=""
75
EXTRA_BOOT_OPTIONS=""
76
 
76
 
77
# Define failsafe boot option
77
# Define failsafe boot option
78
# used if you boot with label "failsafe"
78
# used if you boot with label "failsafe"
79
FAILSAFE_BOOT_OPTIONS="nonet simplex apm=off acpi=off noapic nofstab"
79
FAILSAFE_BOOT_OPTIONS="nonet simplex apm=off acpi=off noapic nofstab"
80
 
80
 
81
# Define default desktop windows manager and default login manager
81
# Define default desktop windows manager and default login manager
82
# (will be put in /etc/sysconfig/desktop)
82
# (will be put in /etc/sysconfig/desktop)
83
#DESKTOP=KDE
83
#DESKTOP=KDE
84
#DISPLAYMANAGER=GNOME
84
#DISPLAYMANAGER=GNOME
85
 
85
 
86
# Services which are off (not running) on the LiveCD
86
# Services which are off (not running) on the LiveCD
87
SERVICES_OFF="microcode_ctl cups yum xinetd afs rhnsd nfslock ip6tables \
87
SERVICES_OFF="microcode_ctl cups yum xinetd afs rhnsd nfslock ip6tables \
88
              mdmonitor mdmpd hpoj sendmail sshd portmap snmptrapd \
88
              mdmonitor mdmpd hpoj sendmail sshd portmap snmptrapd \
89
              snmpd smartd cups-config-daemon sysstat lm_sensors exim \
89
              snmpd smartd cups-config-daemon sysstat lm_sensors exim \
90
              ntpd httpd irqbalance firstboot clamd yum-updatesd kdump \
90
              ntpd httpd irqbalance firstboot clamd yum-updatesd kdump \
91
              auditd rpcidmapd autofs ricci modclusterd xend xendomains"
91
              auditd rpcidmapd autofs ricci modclusterd xend xendomains"
92
 
92
 
93
# Services which are on (running) on the LiveCD
93
# Services which are on (running) on the LiveCD
94
[ "$OS_RELEASE" = "4" ] && SERVICES_ON="apmd acpid pcmcia haldaemon autofs"
94
[ "$OS_RELEASE" = "4" ] && SERVICES_ON="apmd acpid pcmcia haldaemon autofs"
95
[ "$OS_RELEASE" = "5" ] && SERVICES_ON="apmd acpid pcmcia haldaemon \
95
[ "$OS_RELEASE" = "5" ] && SERVICES_ON="apmd acpid pcmcia haldaemon \
96
                                        NetworkManager NetworkManagerDispatcher"
96
                                        NetworkManager NetworkManagerDispatcher"
97
 
97
 
98
# Most probably the LiveCD will not boot with SELinux enabled !  
98
# Most probably the LiveCD will not boot with SELinux enabled !  
99
# SELinux can also be disabled with boot parameter "enforcing=0"
99
# SELinux can also be disabled with boot parameter "enforcing=0"
100
SELINUX=disabled
100
SELINUX=disabled
101
#BOOT_OPTIONS="$BOOT_OPTIONS enforcing=0"
101
#BOOT_OPTIONS="$BOOT_OPTIONS enforcing=0"
102
 
102
 
103
# Set the root password after building the LiveCD
103
# Set the root password after building the LiveCD
104
# (done in restore-system.sh)
104
# (done in restore-system.sh)
105
#SET_ROOTPWD=yes
105
#SET_ROOTPWD=yes
106
 
106
 
107
# LiveCD Label (can be anything you like)
107
# LiveCD Label (can be anything you like)
108
CDLABEL="${LIVECD_OS}LIVECD"
108
CDLABEL="${LIVECD_OS}LIVECD"