Subversion Repositories livecd

Rev

Rev 7 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 9
Line 34... Line 34...
34
    -psi:       customize for PSI Live CD
34
    -psi:       customize for PSI Live CD
35
    -sl:        customize for SL Live CD
35
    -sl:        customize for SL Live CD
36
 
36
 
37
  Optional Options:
37
   Optional Options:
38
 
38
 
39
    -mini:      build a MINI-CD (not well tested)
39
    -mini:      build a MINI-CD ROM
40
    -dvd:       build a Live DVD
40
    -dvd:       build a Live DVD
41
    
41
    
42
  Additionally Options for MINI-CD:
42
    Additionally Options for MINI-CD:
43
 
43
 
44
    -nomove:    do NOT move to /mini to save diskspace 
44
    -nomove:    do NOT move to /mini to save diskspace 
45
    -rootlogin: directly login as root
45
    -rootlogin: directly login as root
46
 
46
 
47
  Configuration file:
-
 
48
 
-
 
49
    See livecd.conf for more configuration options !!
-
 
50
 
-
 
51
 
47
 
52
EOF
48
EOF
53
 
49
 
54
}
50
}
55
 
51
 
Line 106... Line 102...
106
else
102
else
107
    RELEASE="my"
103
    RELEASE="my"
108
fi
104
fi
109
 
105
 
110
### write my version to /etc/livecd-release
106
### write my version to /etc/livecd-release
-
 
107
my_pwd=$( pwd )
111
my_version=$( cat version 2>/dev/null )
108
my_version=${my_pwd##*/}
112
echo $my_version > /etc/livecd-release
109
echo $my_version > /etc/livecd-release
113
 
110
 
114
### Check for SMP kernel and set SMP variable
111
### Check for SMP kernel and set SMP variable
115
SMP=""
112
SMP=""
116
if [ -e /boot/vmlinuz-${KERNEL}smp ]; then
113
if [ -e /boot/vmlinuz-${KERNEL}smp ]; then
Line 187... Line 184...
187
    echo
184
    echo
188
fi
185
fi
189
 
186
 
190
echo
187
echo
191
echo "--------------------------------------------"
188
echo "--------------------------------------------"
192
echo "cd linux-live.sl"
189
echo "cd linux-live.sl4"
193
echo "--------------------------------------------"
190
echo "--------------------------------------------"
194
 
191
 
195
cd linux-live.sl
192
cd linux-live.sl4
196
 
193
 
197
echo "Set kernel boot options in cd-root/isolinux.cfg"
194
echo "Set kernel boot options in cd-root/isolinux.cfg"
198
# for lable linux
195
# for lable linux
199
sed -i "s|append l initrd=boot/initrd.gz init=linuxrc .*|append l initrd=boot/initrd.gz init=linuxrc $BOOT_OPTIONS|" cd-root/isolinux.cfg
196
sed -i "s|append l initrd=boot/initrd.gz init=linuxrc .*|append l initrd=boot/initrd.gz init=linuxrc $BOOT_OPTIONS|" cd-root/isolinux.cfg
200
# for lable linuxsmp
197
# for lable linuxsmp
Line 204... Line 201...
204
 
201
 
205
echo "Set 'Welcome ... to' in splash.cfg"
202
echo "Set 'Welcome ... to' in splash.cfg"
206
sed -i "s|DVD|CD|" cd-root/boot/splash.cfg
203
sed -i "s|DVD|CD|" cd-root/boot/splash.cfg
207
 
204
 
208
if [ $PSI ]; then
205
if [ $PSI ]; then
209
    sed -i "s|Welcome to.* LiveCD.*|Welcome to PSI $LIVECD_OS LiveCD|" cd-root/boot/splash.cfg
206
    sed -i "s|Welcome to.* LiveCD.*|Welcome to PSI SL4 LiveCD|" cd-root/boot/splash.cfg
210
else
207
else
211
    sed -i "s|Welcome to.* LiveCD.*|Welcome to $RELEASE|" cd-root/boot/splash.cfg
208
    sed -i "s|Welcome to.* LiveCD.*|Welcome to $RELEASE|" cd-root/boot/splash.cfg
212
fi
209
fi
213
 
210
 
214
sed -i "s|LiveCD 64bit|LiveCD|" cd-root/boot/splash.cfg
211
sed -i "s|LiveCD 64bit|LiveCD|" cd-root/boot/splash.cfg