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