Tiny Core Base > TCB Q&A Forum

updating TCZ files with more than one TC installed

(1/3) > >>

trinity:
I have TC 2.7 installed onto my HDD and setup a boot code so I can update the tcz files.
I want to do some tests using TC as a base so have made a second install of TC to another partition of the same disk.
However when I do an update it only updates one fo the TC installs (the one on hdb8).

Specifically I have on hdb8 an install to /.
The relevant line in the grub2 stanza is
--- Quote ---linux  /boot/bzImage  tce=hdb8  restore=hdb8  home=hdb8

--- End quote ---

I have on hdb6 another install to a sub-directory called /test
The relevant line in the grub2 stanza is
--- Quote ---linux  /test/boot/bzImage  tce=hdb6/test/tce  restore=hdb6/test  home=hdb6

--- End quote ---

I made an update stanza in grub2 for hdb8.
It is
--- Quote --- linux   /boot/bzImage  base norestore text  tce=hdb8  restore=hdb8 home=hdb8
--- End quote ---

and for hdb6 it is

--- Quote --- linux  /test/boot/bzImage base norestore text tce=hbd6/test/tce restore=hdb6/test  home=hdb6
--- End quote ---

I do
--- Code: ---sudo su
tce-update
--- End code ---
It updates hdb8 but not hdb6 whichever grub update I choose ie hdb6 or hdb8.

Hope that is clear.
So is it possible to update the tcz's to these installs this way? If so what am I doing wrong?
Or am I causing a problem by not having both TC installs in a sub-directory.

Thanks for any help.

maro:
Would you please share with us here the contents of /opt/.tce_dir after booting into each of your two settings.

trinity:
Hello maro and thanks for showing an interest in this problem.
It doesn't matter whether I boot into grub using the update based on hdb6 or hdb8 the results of /opt/.tce_dir are the same

In hdb6 I get

--- Code: ---/mnt/hdb6/test/tce
--- End code ---
and in hdb8 I get

--- Code: ---/mnt/hdb8/tce
--- End code ---
Which is what I would expect. Is this correct.

I am wondering:
1. is my update code okay in grub2 and do I need all that home=hdb8 restore=hdb8 stuff?
2. if I run 2 versions of TC on the same HDD am I supposed to install both of them into subdirectories.
3. does tce-update work with subdirectories?

I have also noticed that:

I have 2 /home directories in hdb6. ie
/mnt/hdb6/home
and
/mnt/hdb6/test/home

I was told that I can't run home in a subdirectory, so didn't put it there but TC seems to have made another home directory under /test.

Also noticed that:

In hdb8 I have under tce;
the tcz files etc
/optional
/upgrade/optional.

In hdb6 I have under tce;
the tcz files etc
/optional.

I hope someone who understands the structure of TC can come along and help.


Thanks for any help

roberts:
tce-update if it cannot determine the target directory it will scan for it. Scanning never looks beyond depth level 1.

roberts:
Unless you have extremely small HD, why don't you just boot as normal for either for hd8 or hd6 then run your update from the menu?

Navigation

[0] Message Index

[#] Next page

Go to full version