WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: different mydata.tgz options  (Read 2833 times)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
different mydata.tgz options
« on: November 23, 2013, 02:22:27 AM »
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 ?

Offline mocore

  • Hero Member
  • *****
  • Posts: 641
  • ~.~
Re: different mydata.tgz options
« Reply #1 on: November 23, 2013, 03: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
« Last Edit: November 23, 2013, 03:21:09 AM by mocore »

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: different mydata.tgz options
« Reply #2 on: November 23, 2013, 07: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 ?
« Last Edit: November 23, 2013, 07:37:21 AM by manit123 »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: different mydata.tgz options
« Reply #3 on: November 23, 2013, 09:40:02 AM »
It should be mydata=bm.
The 'mydata' is then replaced with 'bm'.

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: different mydata.tgz options
« Reply #4 on: November 25, 2013, 12:03:21 AM »
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 ?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: different mydata.tgz options
« Reply #5 on: November 25, 2013, 10:10:38 AM »
It may work, but certainly is not supported, so you're on your own with such a setup.
The only barriers that can stop you are the ones you create yourself.