WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: remaster inird problem  (Read 2037 times)

Offline richardgao

  • WikiUser
  • *
  • Posts: 7
remaster inird problem
« on: November 24, 2009, 04:53:07 AM »
HI all,

  i am very  interested in tinycore linux~~~
  i have remastered  tinycore initrd in order to add opera extension ,the following are my steps:

  1.  zcat /tmp/tinycore.gz | sudo cpio -i -H newc -d

  2. sudo chroot /tmp/tinycore
   
  3.  tce-load -i -r opera.tcz

  4. find | sudo cpio -o -H newc | gzip -2 > ../tinycore.gz

Unluckly,when i boot tinycore linux  with my new tinycore.gz , tinycore did not autologin,it show box login message~~ ,i need to input tc or root in order to login,

so how can i autologin ,any suggestion?

thank you for your time~~~ :) :) :) :) :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: remaster inird problem
« Reply #1 on: November 24, 2009, 09:03:16 AM »
Why do you need to rebuild tinycore.gz with Opera?
Can't you just include a /tce directory with opera.tcz in it on the boot media?

Offline richardgao

  • WikiUser
  • *
  • Posts: 7
Re: remaster inird problem
« Reply #2 on: November 24, 2009, 05:51:48 PM »
Why do you need to rebuild tinycore.gz with Opera?
Can't you just include a /tce directory with opera.tcz in it on the boot media?
:) i just want to speed boot time ~~

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: remaster inird problem
« Reply #3 on: November 24, 2009, 07:17:29 PM »
I am not convinced there would be a significant savings in boot time here.
I subscribe to the KISS philosophy.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: remaster inird problem
« Reply #4 on: November 25, 2009, 07:05:05 AM »
Quote
2. sudo chroot /tmp/tinycore
3.  tce-load -i -r opera.tcz

I suggest "unsquashfs -f -d /tmp/tinycore opera.tcz" instead. With 2.5 and later, you do not need to do this though. Simply put opera.tcz in /opt/tce/ instead of extracting it.

Quote
when i boot tinycore linux  with my new tinycore.gz , tinycore did not autologin,it show box login message

That should not happen. Something went wrong. What I find most helpful is to write a short script that does what you want. Then you can refine it until you get it just right.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9640
Re: remaster inird problem
« Reply #5 on: November 25, 2009, 08:07:48 AM »
The cp function that is used to load tcz files when copy-to-system method it used is quite a bit faster then uncompressing a gzipped file of the same data, whether that file is the old tce format or part of tinycore.gz.  And of course, loading extensions by mounting them is quite a bit faster than copy-to-system mode.  So to have the longest boot time, copy the extension's files to tinycore.gz (initrd).  To have better boot time, place them in /tce and copy to system.  For the best boot time, place them in /tce and use mounted mode.

Of course, there may be other reasons to remaster by placing extensions' files in the base tinycore.gz, but boot time will not improve over having the same data loaded as extensions.