Subversion Repositories livecd

Rev

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

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