I find using tce-load on non-critical extensions in bootlocal.sh to be an excellent way to speed up the startup process. I had to try it many ways to get it to work, but this works (for me):
Add to bootlocal.sh:
ls /mnt/sda5/tce/optional/*.tcz | xargs -n1 sudo sudo -u tc tce-load -i(Note: contrary to what bigpcman wrote, sudo -u tc doesn't work (for me). I had to use sudo sudo -u tc. Perhaps this is because I am using the user=webb bootcode.
I recommend adding this feature to base tce, via an afterboot.lst alongside onboot.lst in tce/ .
First, in bash:
ls --color=never /mnt/sda5/tce/optional/*.tcz | xargs -n1 basename > /mnt/sda5/tce/afterboot.lst
Then, add to bootlocal.sh:
cat /mnt/sda5/tce/afterboot.lst | xargs -n1 sudo sudo -u tc tce-load -i
Efficiency could be increased by pruning afterboot.lst to stop tce-load from trying to load already-loaded dependencies of previously loaded extensions. Sorting extensions by size when creating afterboot.lst works ok.