wok-6.x diff linld/stuff/src/LINLD.CPP @ rev 19825

linld/tazboot: can boot memtest & ipxe
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 05 13:22:08 2017 +0100 (2017-03-05)
parents 23fc786c04e8
children 008ac2992c52
line diff
     1.1 --- a/linld/stuff/src/LINLD.CPP	Sat Dec 24 19:16:59 2016 +0100
     1.2 +++ b/linld/stuff/src/LINLD.CPP	Sun Mar 05 13:22:08 2017 +0100
     1.3 @@ -58,6 +58,7 @@
     1.4  	}
     1.5          if(strhead(s,"image=") == 0) {
     1.6  	    s+=6;
     1.7 +	set_kernel_name:
     1.8              kernel_name=s;
     1.9          }
    1.10          else if(strhead(s,"initrd=") == 0) {
    1.11 @@ -116,8 +117,8 @@
    1.12  	    strcatb(_cmdline,*argv);
    1.13          }
    1.14  	else if(i == 1 && fileattr(s) != -1) {
    1.15 -            kernel_name = s;
    1.16  	    cmdline = (const char *) _cmdline;
    1.17 +	    goto set_kernel_name;
    1.18          }
    1.19  	else
    1.20  	    break;