Tiny Core Linux
Tiny Core Base => TCB Bugs => Topic started 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
-
Change in cpio version. See Change Log above.
-
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:
# 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.
-
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.
-
more importantly, are the instructions in the wiki still accurate?
-
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.
-
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
-
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.
-
Note, from 1.3rc1 onwards the busybox cpio has been updated and the error no longer appears when extracting with GNU cpio.
-
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 :)
-
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.