I've done a good deal of rewriting tc-config to handle tasks needed for my own project, but there's one that's eluding me.
In the case-loop for command-line options, everything is listed there except the one left on my list... tce=[type]=[value]
At the start of the script, it sets up a variable TCEDIR which initially points to /tmp/tce. If the system has no tce= variable, this continues on to being the install location for temporary TCZ files.
I moved the call to devadm to ABOVE this loop (necessary for USB devices) and directly after I have a script running which checks for a new boot code called TCC which uses the same format at tce. TCC's (which for me stands for TCE Compare) job is to detect a hot-swap media device such as tcc=LABEL=myusbstick or tcc=UUID=12345 where if a partition with that name or ID is found, it's job is to REPLACE tce=, opt= and other persistent areas with the one noted by tcc=. The problem is, I don't know where tce= takes place... though something tells me it's likely going to be found in the kernel patches, but I figured I'd ask before I venture into that direction.
I've tried everything I know of thus far to circumvent tce= but nothing's getting though as of yet.
I've tried to replace $TCEDIR with the new location of (example) /mnt/sdc1/tce... it goes basically ignored.
I've overwritten $CMDLINE and replaced cat /proc/cmdline in the loop.
I can't overwrite /proc/cmdline directly (not that I know of at least) so if the area running tce= is using something I either do not know exists, or is too far past tc-config to matter.
Any thoughts on this would be greatly appreciated!