tazlito rev 413

tazlito update_bootconfig() fix isolinux.cfg creation
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Feb 21 04:51:59 2016 +0200 (2016-02-21)
parents 94c0fa7c65ba
children 4fccc5d405ed
files tazlito
line diff
     1.1 --- a/tazlito	Sat Feb 20 17:06:44 2016 +0200
     1.2 +++ b/tazlito	Sun Feb 21 04:51:59 2016 +0200
     1.3 @@ -754,23 +754,18 @@
     1.4  				if (/bzImage/) linux = "linux /boot/bzImage ";
     1.5  				i = index($0, "rootfs.gz");
     1.6  				append = substr($0, i+9);
     1.7 -				print "	kernel /boot/isolinux/ifmem.c32"
     1.8 -				printf "\tappend%s noram", sel;
     1.9 -				print ""
    1.10 -				print "label noram"
    1.11 -				print "	MENU HIDE"
    1.12 -				print "	config noram.cfg"
    1.13 -				print ""
    1.14 +				printf "\tkernel /boot/isolinux/ifmem.c32\n";
    1.15 +				printf "\tappend%s noram\n", sel;
    1.16 +				printf "\nlabel noram\n\tMENU HIDE\n\tconfig noram.cfg\n\n";
    1.17  				for (i = 1; i <= n; i++) {
    1.18  					print "LABEL slitaz" i
    1.19 -					printf "\tMENU LABEL SliTaz slitaz%d Live", i;
    1.20 -					print kernel;
    1.21 +					printf "\tMENU LABEL SliTaz slitaz%d Live\n", i;
    1.22 +					printf "%s\n",  kernel;
    1.23  					initrd = "initrd=/boot/rootfs" n ".gz"
    1.24  					for (j = n - 1; j >= i; j--) {
    1.25  						initrd = initrd ",/boot/rootfs" j ".gz";
    1.26  					}
    1.27 -					printf "\tappend %s%s%s\n", linux, initrd, append;
    1.28 -					print "";
    1.29 +					printf "\tappend %s%s%s\n\n", linux, initrd, append;
    1.30  				}
    1.31  			}
    1.32  			else if (/bzImage/) kernel = $0;