Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: danielibarnes on March 16, 2009, 04:17:38 PM

Title: /tce on read-only media
Post by: danielibarnes on March 16, 2009, 04:17:38 PM
I noticed that when the /tce directory is on my CD, I cannot download or install extensions. Is it possible for the app installer (and thus tce-load) to test for a read-only filesystem and use /tmp/tce as a fallback?
Title: Re: /tce on read-only media
Post by: mikshaw on March 16, 2009, 04:52:39 PM
I think you can have the download path automatically set by changing /opt/.tce_dir
Be aware, though, that this file is auto-generated during boot if you have a tce directory, so you'd need to change the file each session..."echo /path/to/new/tce/directory > /opt/.tce_dir" in bootlocal.sh should work.
Title: Re: /tce on read-only media
Post by: danielibarnes on March 16, 2009, 05:52:47 PM
Thanks. That's the solution I needed. I never noticed the .tce_dir file. A much simpler solution than modifying the appbrowser behavior. It works well because it's when I remaster that I place extensions on the CD, so I can just update that file when all the extensions finish loading.
Title: Re: /tce on read-only media
Post by: mikshaw on March 16, 2009, 07:18:54 PM
Another thought, rather than creating the file from bootlocal on every boot.  Since that would require the use of backup anyway, you could include a new .tce_dir file in the backup.