WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 1.1rc2 tinycore.gz  (Read 5850 times)

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
1.1rc2 tinycore.gz
« on: January 26, 2009, 01: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
« Last Edit: January 26, 2009, 01:49:52 PM by danielibarnes »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: 1.1rc2 tinycore.gz
« Reply #1 on: January 26, 2009, 06:01:53 PM »
Change in cpio version. See Change Log above.
10+ Years Contributing to Linux Open Source Projects.

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: 1.1rc2 tinycore.gz
« Reply #2 on: February 12, 2009, 08: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.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: 1.1rc2 tinycore.gz
« Reply #3 on: February 12, 2009, 09:15:46 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.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: 1.1rc2 tinycore.gz
« Reply #4 on: February 12, 2009, 09:35:09 AM »
more importantly, are the instructions in the wiki still accurate?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: 1.1rc2 tinycore.gz
« Reply #5 on: February 12, 2009, 09:59:37 AM »
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.
The only barriers that can stop you are the ones you create yourself.

Offline jeastham

  • Newbie
  • *
  • Posts: 3
Re: 1.1rc2 tinycore.gz
« Reply #6 on: March 25, 2009, 08: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

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: 1.1rc2 tinycore.gz
« Reply #7 on: March 25, 2009, 10:59:54 AM »
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: 1.1rc2 tinycore.gz
« Reply #8 on: March 27, 2009, 03: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.
The only barriers that can stop you are the ones you create yourself.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: 1.1rc2 tinycore.gz
« Reply #9 on: March 28, 2009, 12: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 :)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: 1.1rc2 tinycore.gz
« Reply #10 on: March 28, 2009, 03: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.
The only barriers that can stop you are the ones you create yourself.