Subversion Repositories livecd

Rev

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

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