Subversion Repositories livecd

Rev

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

Rev 67 Rev 93
Line 228... Line 228...
228
echo "cd linux-live.sl"
228
echo "cd linux-live.sl"
229
echo "--------------------------------------------"
229
echo "--------------------------------------------"
230
 
230
 
231
cd linux-live.sl
231
cd linux-live.sl
232
 
232
 
-
 
233
### create isolinux.cfg from isolinux.cfg.tpl
233
echo "Set kernel boot options in cd-root/isolinux.cfg"
234
echo "Create cd-root/isolinux.cfg"
-
 
235
cp cd-root/isolinux.cfg.tpl cd-root/isolinux.cfg
234
 
236
 
235
## for lable linux
-
 
236
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
237
sed -i "s|append linux|append initrd=boot/initrd.gz init=linuxrc $BOOT_OPTIONS|" cd-root/isolinux.cfg
237
 
-
 
238
## for lable linuxsmp
-
 
239
sed -i "s|append l initrd=boot/initrd${SMP}.gz init=linuxrc .*|append l initrd=boot/initrd${SMP}.gz init=linuxrc $BOOT_OPTIONS|" cd-root/isolinux.cfg
238
sed -i "s|append smp|append initrd=boot/initrd${SMP}.gz init=linuxrc $BOOT_OPTIONS|" cd-root/isolinux.cfg
240
 
-
 
241
## for lable failsafe
-
 
242
sed -i "s|append f initrd=boot/initrd.gz init=linuxrc .*|append f initrd=boot/initrd.gz init=linuxrc $BOOT_OPTIONS $FAILSAFE_BOOT_OPTIONS|" cd-root/isolinux.cfg
239
sed -i "s|append failsafe|append initrd=boot/initrd.gz init=linuxrc $BOOT_OPTIONS $FAILSAFE_BOOT_OPTIONS|" cd-root/isolinux.cfg
243
 
240
 
-
 
241
### create splash.cfg from plash.cfg.tpl
244
### define RELEASE string
242
echo "Create in splash.cfg"
-
 
243
cp cd-root/boot/splash.cfg.tpl cd-root/boot/splash.cfg
245
[ -e /etc/redhat-release ] && RELEASE=$( cat /etc/redhat-release )
244
[ -e /etc/redhat-release ] && RELEASE=$( cat /etc/redhat-release )
246
 
-
 
247
## Set Welcome ...
-
 
248
echo "Set 'Welcome ... to' in splash.cfg"
-
 
249
ARCH64=""
245
ARCH64=""
250
[ "$ARCH" = "x86_64" ] && ARCH64="64bit"
246
[ "$ARCH" = "x86_64" ] && ARCH64="64bit"
251
 
247
 
252
if [ $PSI ]; then
248
if [ $PSI ]; then
253
    sed -i "s|Welcome to.*|Welcome to PSI $LIVECD_OS LiveCD ${ARCH64}|" cd-root/boot/splash.cfg
249
    sed -i "s|Welcome to.*|Welcome to PSI $LIVECD_OS LiveCD ${ARCH64}|" cd-root/boot/splash.cfg
254
else
250
else
255
    sed -i "s|Welcome to.*|Welcome to $RELEASE ${ARCH64}|" cd-root/boot/splash.cfg
251
    sed -i "s|Welcome to.*|Welcome to $RELEASE ${ARCH64}|" cd-root/boot/splash.cfg
256
fi
252
fi
257
 
-
 
258
## Set DVD or MiniCD (just to be sure)
-
 
259
[ $DVD ]  && sed -i "s|CD|DVD|"    cd-root/boot/splash.cfg
253
[ $DVD ]  && sed -i "s|LiveCD|LiveDVD|"    cd-root/boot/splash.cfg
260
[ $MINI ] && sed -i "s|CD|MiniCD|" cd-root/boot/splash.cfg
254
[ $MINI ] && sed -i "s|LiveCD|LiveMiniCD|" cd-root/boot/splash.cfg
261
 
255
 
262
 
256
 
263
 
257
 
264
### Run runme.sh
258
### Run runme.sh
265
### -----------------------------------------------------------
259
### -----------------------------------------------------------
266
echo
260
echo
267
echo "--------------------------------------------"
261
echo "--------------------------------------------"
268
echo "Run ./runme.sh"
262
echo "Run ./runme.sh"
269
echo "--------------------------------------------"
263
echo "--------------------------------------------"
270
./runme.sh
264
./runme.sh
271
 
-
 
272
 
-
 
-
 
265
rm -f cd-root/boot/splash.cfg
-
 
266
rm -f cd-root/isolinux.cfg
273
 
267
 
274
### Run restore-system.sh
268
### Run restore-system.sh
275
### -----------------------------------------------------------
269
### -----------------------------------------------------------
276
echo
270
echo
277
echo "--------------------------------------------"
271
echo "--------------------------------------------"