ChangeSet 1.914.157.8, 2003/02/15 23:24:10-06:00, arndb@de.ibm.com

klibc: gen_init_cpio file generation fix

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.


diff -Nru a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c
--- a/usr/gen_init_cpio.c	Wed Feb 19 11:41:56 2003
+++ b/usr/gen_init_cpio.c	Wed Feb 19 11:41:56 2003
@@ -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);
