Tiny Core Base > Raspberry Pi
Correct (if possible) way to update a tcz without a reboot
onelife:
Greetings All,
I'm wondering if there is an conclusion on how a tcz should / could be updated without a reboot of the system?
The tcz I have in question is 100% "my own files" and would not have dependencies as such. It's actually a java application that I simply want to be able to update and remount without a reboot.
I see you can do commands such as :
--- Code: (bash) ---sudo unmount -d /tmp/tcloop/package_name
--- End code ---
But I see this doesn't actually take the loaded files off the mounted system?
I also see a few guys have made a tcz-reload / tcz-unload script but not sure if these are safe on Picore as 2 I tried didn't work and made the system unstable.
Any suggestions are awesome as I'd like to think this is possible and certainly like todo it the best way possible.
Many Thanks
Dean
curaga:
If you loaded it as symlinks (mount mode), having the old symlinks there doesn't hurt anything, as long as the new extension is named the same.
onelife:
Thank you for that confirmation :)
So would the idea of doing :
--- Code: (bash) ---sudo umount -d /tmp/tcloop/package_name
--- End code ---
and then :
--- Code: (bash) ---sudo mount /mnt/mmcblk0p2/tce/optional/package_name /tmp/tcloop/
--- End code ---
Work all in order and would cause the remount to over right the files that are left behind from the umount?
The package paths etc are all identical, I simply update the package_name.tcz and would like to re-load this without a reboot.
It was originally mounted as part of TC boot / start process if that makes any difference?
Is that thinking then right?
THANK YOU! :)
curaga:
Yes, that works fine. However, if the update added new files, you'd need to remove the installed marker (rm /usr/local/tce.installed/package_name) and use tce-load instead of mount.
Rich:
Hi onelife
--- Quote from: curaga on July 30, 2017, 01:10:29 AM ---Yes, that works fine. However, if the update added new files, you'd need to remove the installed marker (rm /usr/local/tce.installed/package_name) and use tce-load instead of mount.
--- End quote ---
If you do that and have a PROGRAM.desktop file with an icon listed, you'll first want to remove the three lines referring to your
program in /usr/local/tce.icons or you'll start seeing multiple icons on the wbar. I also used to remove the popup menu entry
under /home/tc/.wmx/Applications ,though I don't recall if that was necessary or me just being thorough.
When I was dealing with this I added commands to do the cleanup to the beginning of my build script.
Navigation
[0] Message Index
[#] Next page
Go to full version