View Single Post
Old 01-14-2017, 05:00 PM   #13
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Here is what you have to replace:
Code:
/dev/loop/3 on /usr/java/lib/fonts type squashfs (ro,noatime,nodiratime)
That is actually a file on the main file system.
Somewhere (in fstab or in the start-up scripting) is a command to mount that file on loop3.

You take a copy of that file -
Mount it on your work station -
Copy out the contents (as 'root' to preserve ownership and permissions) -
Change the files you want to change -
Re-create the squashfs file system with the squashfs utilities (it is a create, read, no write system) -
Put you new file (containing the new file system contents) where it will always be available (/var/local - IIRC) -
Make some scripting (NOT automated - you want to be able to rescue this thing) that will over-mount whatever is mounted on /dev/loop/3 with your new squashfs file -
restart cvm (and the framework, if restarting cvm does not do that itself).
If it bricks, re-boot, and just don't run your custom script again until you fix whatever is broken.

Note:
I don't know if your MacOS X system supports the squashfs file system -
You may have to run a Linux VM on your Mac to do the above.

Last edited by knc1; 01-14-2017 at 05:02 PM.
knc1 is offline   Reply With Quote