wok diff linld/stuff/src/TAZBOOT.CPP @ rev 20534
Add util-linux-losetup
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 26 09:46:23 2018 +0100 (2018-11-26) |
parents | f0d71e920c5a |
children | ab907169f156 |
line diff
1.1 --- a/linld/stuff/src/TAZBOOT.CPP Fri Nov 09 16:37:55 2018 +0100 1.2 +++ b/linld/stuff/src/TAZBOOT.CPP Mon Nov 26 09:46:23 2018 +0100 1.3 @@ -101,7 +101,7 @@ 1.4 c = x->filename[6]; 1.5 } 1.6 1.7 - strcatb(buf_cmdline," rw root=/dev/null autologin bootfrom="); 1.8 + strcatb(buf_cmdline,"rw root=/dev/null autologin bootfrom="); 1.9 strcat(buf_cmdline,*iso); 1.10 if (magic < 0x20630) 1.11 init = ""; // Does not support multiple initramfs 1.12 @@ -133,9 +133,7 @@ 1.13 read(x->fd, &x->filemod, 10); // + x->fileofs & x->filesize 1.14 magic = x->filemod; 1.15 x->fileofs &= 0xFFFFL; 1.16 - //x->fileofs -= 0xC0L + (x->filesize &= 0xFFFF); 1.17 - * ((short *) &x->filesize + 1) = 0; 1.18 - x->fileofs -= 0xC0L + x->filesize; 1.19 + x->fileofs -= 0xC0L + (x->filesize &= 0xFFFF); 1.20 if (((short *) &x->fileofs)[1] == 0) addinitrd(); 1.21 else init=""; 1.22 }