Subversion Repositories livecd

Rev

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

Rev 94 Rev 100
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 
-
 
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
Line 45... Line 42...
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"