Tiny Core Base > TCB Tips & Tricks

delete subdir of tcloop TinyCore 4.7

<< < (2/3) > >>

curaga:
You can load the extension to RAM with the copy2fs toggle, then the files will be editable. I don't understand your second part?

coreplayer2:
I think the intention here is to modify an extension,  then have the changes reflected on next reboot.   I'm sure with some reading of the wiki or the new book the OP will gain an understanding of how tinycore functions quickly.

Anyhow, the only location where it is possible to modify an extension is /tce/optional (assuming this is not a read only media).  You would first install the extension squashfs-tools-4.x.tcz  using Apps, tce-load -wil squashfs-tools-4.x.tcz, or better still  tce-ab  search

Next enter the extension store directory on writable media (eg: Hard Drive) /mnt/sd(?)/tce/optional   
note: you must be in the parent directory of the extension or extracted directory.

extract the archive at the command line using 
    unsquashfs -d extension_name extension_name.tcz

make changes as needed,  then repackage or create using
    mksquashfs extension_name/ extension_name.tcz

If set to load on reboot via onboot.lst and modified correctly then on next reboot the new/modified extension should load with expected changes.  Be cautious not to change file permissions of required files

 

chang5811:
to curaga:
here were my original script to generate myapp.tcz

--- Quote ---I have my python applications under the /home/tc/myapp/mytest.py
$ sudo su
$ cd /tmp
$ mkdir apptest
$ cd apptest
$ mkdir -p home/tc
$ mv /home/tc/myapp /tmp/apptest/home/tc
$ cd /tmp
$ mksquashfs apptest myapp.tcz
$ cd /tmp
$ mv -v myapp.tcz /mnt/sda1/tce/optional
# Adding myapp.tcz to onboot.lst.
# I noticed that mksquashfs generated original mytest.py as a link file under the /home/tc/myapp/
# start mytest.py at bootup as a background proc
$ sudo -s
$ echo "python /home/tc/myapp/mytest.py start" > /opt/bootloca.sh

--- End quote ---
Then I wanted to edit mytest.py, but I could not delete/edit mytest.py under the tcpool/  and the link file by tc or root, either I could not remove the /tmp/tcpool/myapp, changed onboot.lst (myapp/tcz added back when reboot).. 

I will try coreplayer2's commands to today.  Thanks all

chang5811:
Tried Coreplayer2's advices, it works. thanks.  Then tried mksquashfs again, it worked.
 I need to set up a proper subdir to host myapp.
my confusion was why the mksquashfs produced myapp under tcloop and why the myapp will load back there even I removed myapp subdir if the tcpool is non-persistent?

gerald_clark:
mksquashfs just makes the squashfs file you told it to make.
It doesn not make it under tcloop unless you give it a destination under tcloop.
I have no idea what "tcpool" is unless it is a typo for tcloop.
Once you boot Core and an app is mounted, removing the subdirectory from /tmp/tcloop will not make it go away.
Core provides no method for "uninstalling" an installed application. ( where "installed" is defined as "loop mounted" not "copied to tce/optional".

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version