WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TinyCore 15: tce-update does not work from the CLI  (Read 905 times)

Offline abru

  • Newbie
  • *
  • Posts: 7
TinyCore 15: tce-update does not work from the CLI
« on: April 28, 2024, 01:26:03 AM »
When I start TinyCore (v 15.0) with bootcode base norestore and run tce-update from the command line, the script does not work - Could not find a valid tce directory.

FAQ: http://tinycorelinux.net/faq.html#update
The safe method to keeping your collection of extensions updated is to boot base norestore
and run tce-update from the command line.

tc@box:~$ tce-update
Checking for Easy Mode Operation...
Could not find a valid tce directory?
tc@box:~$

tc@box:~$ ls
boot  lost+found  tce
tc@box:~$


it also does not work after a new installation
« Last Edit: April 28, 2024, 01:36:42 AM by abru »

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 281
Re: TinyCore 15: tce-update does not work from the CLI
« Reply #1 on: April 28, 2024, 07:17:00 PM »
Yes those instructions for tce-update (including the instructions displayed by the script itself when you run it on a partition without enough space for "easy mode") don't really work.

When booted with "base" the partition with the "tce" directory isn't mounted and the /etc/sysconfig/tcedir symlink points to a directory in /tmp. As root, you need to manually delete this symlink, mount your tce partition, and create a new symlink to your actual "tce" directory:
Code: [Select]
sudo rm /etc/sysconfig/tcedir
mount /mnt/sda1
sudo ln -s /mnt/sda1/tce /etc/sysconfig/tcedir

Replace "sda1" with whatever the name is for the partition holding your tce directory (you can also check the path of the /etc/sysconfig/tcedir symlink when TC is booted without "base" using "readlink /etc/sysconfig/tcedir").

Offline abru

  • Newbie
  • *
  • Posts: 7
Re: TinyCore 15: tce-update does not work from the CLI
« Reply #2 on: April 29, 2024, 12:30:02 AM »
Many thanks to CNK for the workaround solution, it works perfectly!