Tiny Core Linux

General TC => General TC Talk => Topic started by: richardgao on November 24, 2009, 07:53:07 AM

Title: remaster inird problem
Post by: richardgao on November 24, 2009, 07: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~~~ :) :) :) :) :)
Title: Re: remaster inird problem
Post by: gerald_clark on November 24, 2009, 12:03:16 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?
Title: Re: remaster inird problem
Post by: richardgao on November 24, 2009, 08: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 ~~
Title: Re: remaster inird problem
Post by: gerald_clark on November 24, 2009, 10:17:29 PM
I am not convinced there would be a significant savings in boot time here.
I subscribe to the KISS philosophy.
Title: Re: remaster inird problem
Post by: danielibarnes on November 25, 2009, 10: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.
Title: Re: remaster inird problem
Post by: Jason W on November 25, 2009, 11: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.