Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: danielibarnes on January 26, 2009, 04:44:50 PM

Title: 1.1rc2 tinycore.gz
Post by: danielibarnes on January 26, 2009, 04:44:50 PM
When I extract tinycore.gz per remastering instructions
zcat /mnt/hda/boot/tinycore.gz | cpio -i -H newc -d

I get:
cpio: premature end of file

I've verified the md5sum for my 1.1rc2 iso. This error doesn't happen with 1.1rc1. Has anyone else seen this?

EDIT: This only happened when booting 1.1rc1 and trying to extract 1.1rc2. Booting from 1.1rc2 and extracting 1.1rc2 works fine, so it is more a curiosity than a bug.

Thanks,
Daniel
Title: Re: 1.1rc2 tinycore.gz
Post by: roberts on January 26, 2009, 09:01:53 PM
Change in cpio version. See Change Log above.
Title: Re: 1.1rc2 tinycore.gz
Post by: mikshaw on February 12, 2009, 11:37:42 AM
Is that an older version of cpio in Busybox?  Or maybe there was some change made to the Busybox version besides trimming? I tried extracting tinycore.gz in another distro using the latest GNU version of cpio, and got the same result as Daniel:
Code: [Select]
# zcat /mnt/test/boot/tinycore.gz | cpio -H newc -i -d --no-absolute-filenames -v
...
sbin/mkfs.ext2
sbin/mkfs.ext3
cpio: sbin/mke2fs linked to sbin/mkfs.ext3
cpio: sbin/mke2fs linked to sbin/mkfs.ext2
sbin/mke2fs
cpio: premature end of file
Maybe something to do with hard links.

As with Daniel, this is more from curiosity than anything else.
Title: Re: 1.1rc2 tinycore.gz
Post by: danielibarnes on February 12, 2009, 12:15:46 PM
Yes, I experienced that with Debian 4. It uses cpio version 2.6, which dates back to Dec 2004. Ubuntu and Debian 5 use 2.9, so they will probably work.
Title: Re: 1.1rc2 tinycore.gz
Post by: tobiaus on February 12, 2009, 12:35:09 PM
more importantly, are the instructions in the wiki still accurate?
Title: Re: 1.1rc2 tinycore.gz
Post by: curaga on February 12, 2009, 12:59:37 PM
Yes, the remastering page is still accurate. Seems no information is missing even when extracted with GNU cpio, so this is just a slight inconsistency in busybox cpio.

The kernel won't mind images packed with either.
Title: Re: 1.1rc2 tinycore.gz
Post by: jeastham on March 25, 2009, 11:13:48 AM
Yes, I experienced that with Debian 4. It uses cpio version 2.6, which dates back to Dec 2004. Ubuntu and Debian 5 use 2.9, so they will probably work.

Nope - Does the same thing with Mandriva 2009 (cpio 2.9).

A bit more of a hassle with me, as I'm creating a re-master script (that takes the ISO as the 1st parameter, and a number of extensions as subsequent parameters), and I'm unable to test for a successful unpack of the initrd; at least not cleanly, and in the usual way :-(

Justin
Title: Re: 1.1rc2 tinycore.gz
Post by: danielibarnes on March 25, 2009, 01:59:54 PM
I remaster TC within TC, but that would just be a different kind of hassle for you. I use VMware to run TC so I can do that easily.
Title: Re: 1.1rc2 tinycore.gz
Post by: curaga on March 27, 2009, 06:45:34 PM
Note, from 1.3rc1 onwards the busybox cpio has been updated and the error no longer appears when extracting with GNU cpio.
Title: Re: 1.1rc2 tinycore.gz
Post by: tobiaus on March 28, 2009, 03:59:45 AM
Note, from 1.3rc1 onwards the busybox cpio has been updated and the error no longer appears when extracting with GNU cpio.

oh i totally misunderstood... all this time i thought that the error was possibly due to the update- that the update was an improvement on other unrelated things only... not that it improved this very thing. hence my question if the wiki page was still accurate :)
Title: Re: 1.1rc2 tinycore.gz
Post by: curaga on March 28, 2009, 06:14:43 AM
Heh, it was the busybox cpio that was broken before, which was added in 1.1rc2 to replace the larger GNU cpio. Then the busybox update in 1.3rc1 had also the bugfixes for cpio.