tazusb rev 23

fix: install_boot function. Copy all cfg files and keyboards from LiveCD.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue May 13 10:14:48 2008 +0200 (2008-05-13)
parents 69892c9ab39a
children a8ea91ebcfba
files tazusb
line diff
     1.1 --- a/tazusb	Tue Apr 08 08:03:15 2008 +0000
     1.2 +++ b/tazusb	Tue May 13 10:14:48 2008 +0200
     1.3 @@ -201,32 +201,28 @@
     1.4  	mkdir -p $TARGET_ROOT/boot/$ST
     1.5  	$STC
     1.6  	
     1.7 -	# extlinux.conf / syslinux.cfg
     1.8 -	cat > $TARGET_ROOT/boot/$ST/$ST.$STE << _EOT_
     1.9 -display $ST.msg
    1.10 -default slitaz
    1.11 -label slitaz
    1.12 -    kernel /boot/bzImage
    1.13 -    append initrd=/boot/rootfs.gz rw root=/dev/null home=$UUID
    1.14 -
    1.15 -label previous
    1.16 -    kernel /boot/bzImage
    1.17 -    append initrd=/boot/previous.gz rw root=/dev/null home=$UUID
    1.18 -
    1.19 -implicit 0	
    1.20 -prompt 1
    1.21 -timeout 40
    1.22 -F1 help.txt
    1.23 -F2 options.txt
    1.24 -F3 $ST.msg
    1.25 -F4 display.txt
    1.26 -_EOT_
    1.27 -
    1.28 +	# Use existing isolinux.cfg for extlinux.conf or syslinux.cfg
    1.29 +	cp /media/cdrom/boot/isolinux/isolinux.cfg $TARGET_ROOT/boot/$ST/$ST.$STE
    1.30 +	
    1.31 +	# Add home= to apppend in extlinux or syslinux.cfg
    1.32 +	sed -i -e "s/\(append.*\)/\1 home=$UUID/" $TARGET_ROOT/boot/$ST/$ST.$STE
    1.33 +	
    1.34  	# Splash screen and help files.
    1.35 -	cp /media/cdrom/boot/isolinux/isolinux.msg $TARGET_ROOT/boot/$ST/extlinux.msg
    1.36 -	sed -i s/'SliTaz GNU\/Linux'/'SliTaz GNU\/Linux LiveUSB'/ $TARGET_ROOT/boot/$ST/extlinux.msg
    1.37 +	cp /media/cdrom/boot/isolinux/isolinux.msg $TARGET_ROOT/boot/$ST/$ST.msg
    1.38 +	sed -i s/'SliTaz GNU\/Linux'/'SliTaz GNU\/Linux LiveUSB'/ $TARGET_ROOT/boot/$ST/$ST.msg
    1.39  	cp /media/cdrom/boot/isolinux/splash.lss $TARGET_ROOT/boot/$ST
    1.40  	cp /media/cdrom/boot/isolinux/*.txt $TARGET_ROOT/boot/$ST
    1.41 +	cp /media/cdrom/boot/isolinux/*.cfg $TARGET_ROOT/boot/$ST
    1.42 +	cp /media/cdrom/boot/isolinux/*.kbd $TARGET_ROOT/boot/$ST
    1.43 +	cp /media/cdrom/boot/isolinux/*.c32 $TARGET_ROOT/boot/$ST
    1.44 +	
    1.45 +	# Modifing all cfg files.
    1.46 +	for cfg in $TARGET_ROOT/boot/$ST/*.cfg
    1.47 +	do
    1.48 +		sed -i s/isolinux.msg/$ST.msg/ $cfg
    1.49 +	done
    1.50 +
    1.51 +
    1.52  }
    1.53  
    1.54  # Let user exit or reboot.