Skip to contentSkip to conversation

klibc update

DISCUSSION Arnd Bergmann 2 participants 2 messages Feb 6, 2003 – Feb 7, 2003 Kbuild

lore
Share & tools
lore
#0 lore raw

I found what kept initramfs from working here: While creating of initramfs_data.cpio.gz, the padding between a file header and the file contents was wrong, which can be verified by unpacking the archive by hand.

The trivial patch below fixed this for me.

	Arnd <><

===== usr/gen_init_cpio.c 1.3 vs edited =====

usr/gen_init_cpio.c +1 -0
@@ -192,6 +192,7 @@
 		0);			/* chksum */
 	push_hdr(s);
 	push_string(location);
+	push_pad();
 
 	for (i = 0; i < buf.st_size; ++i)
 		fputc(filebuf[i], stdout);
#1 lore raw
Quoted 6 lines · Arnd Bergmann

I found what kept initramfs from working here: While creating of initramfs_data.cpio.gz, the padding between a file header and the file contents was wrong, which can be verified by unpacking the archive by hand.

The trivial patch below fixed this for me.

Thanks a lot for the patch, I've added it to my tree, and verified that the uncompressed archive works properly.

thanks again,

greg k-h