Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: manit123 on November 22, 2013, 11:22:27 PM

Title: different mydata.tgz options
Post by: manit123 on November 22, 2013, 11:22:27 PM
Hi ,
Is it possible that I can create different tgz files for different boot configurations
Let me illustrate
Here is my /boot/grub/menu.lst
Code: [Select]
title tiny-core-all-features
root (hd0,0)
kernel ... lst=full.lst other-options
initrd ...

title tiny-core-bare-minimum
root (hd0,0)
kernel ... lst=bare-minimum.lst other-options
initrd ...
Here tce folder has files
(1)full.lst (lots of extension names {inside like firefox , mplayer , pcmanfm , oss , foxit }  which are kept alongwith their dependencies in tce/optional folder) & bare-minimum.lst (very few extensions just xvesa,xlib,ntfs-3g,bash,flwm,e2fsprogs,xprogs,dosfstools,vim)
(2)full.tgz (has default configuration files for pcmanfm , mplayer , firefox jre , flash plugins wrapped inside) ~ 40MB
small.tgz (just ~/.vimrc)

How can I point to full.tgz & small.tgz in boot options ?
Title: Re: different mydata.tgz options
Post by: mocore on November 23, 2013, 12:18:00 AM
You can do just that using the boot code ”mydata=xxx”

After a little search it seems this option is not listed / documented in expected places eg FAQ and wiki
see also  /etc/init.d/ tc-config
Title: Re: different mydata.tgz options
Post by: manit123 on November 23, 2013, 04:26:17 AM
I added 'mydata=bm.tgz' (without quotes) at the end of 'kernel ... 'line after 'lst=bm.lst' (ditto)
mydata.tgz (40MB) & bm.tgz (288KB has /home/tc/.vimrc file) are kept in tce folder of boot partition.
Question)Though mydata.tgz did not got loaded , BUT neither did bm.tgz

Question)Also if gparted.tcz & its dependencies are kept in tce/optional/g folder & I add a line 'g/gparted.tcz' to tce/onboot.lst then will OS load them from there ?
Title: Re: different mydata.tgz options
Post by: gerald_clark on November 23, 2013, 06:40:02 AM
It should be mydata=bm.
The 'mydata' is then replaced with 'bm'.
Title: Re: different mydata.tgz options
Post by: manit123 on November 24, 2013, 09:03:21 PM
that worked.

I had another question
Quote
if gparted.tcz & its dependencies are kept in tce/optional/g folder & I add a line 'g/gparted.tcz' to tce/onboot.lst then will OS load them from there ?
Title: Re: different mydata.tgz options
Post by: curaga on November 25, 2013, 07:10:38 AM
It may work, but certainly is not supported, so you're on your own with such a setup.