I described the process in http://wiki.tinycorelinux.net/wiki:pretce
Hi gerald_clark!
Well.. I did think to use this pretce approach.. but I can't give 'sda1' or something like that for pretce to work with, because I have all partitions on whether RAID 1 or RAID0. And the partition with tce dir is on RAID1. Would something like this work in grub2: pretce=md0/pre? I think it would not work, but I haven't tried it. Also it's better to use UUID like I have in grub.cfg, because md0, md1 etc tends to change over time.
UUID c390bd7b-1490-41fb-aa7a-760046c06258 is the RAID1 partition, where tce folder is. If I could point pretce boot code to look into c390bd7b-1490-41fb-aa7a-760046c06258 partition, where onpre.sh script is, I can assemble arrays in that script.
Also I do not want to load some additional extension, because I have all those needed remastered into initrd. I just need to put the raid assembling stuff somewhere into the boot process (
also so that I do not break the 'good habits' in TC), so that tce would mapped correctly after boot up.
gerald_clark, maybe you can give me some more specific hints as how could I get this working with pretce. I have used pretce in past successfully to automatically load hardware raid in server, but in that case I did put the pre folder into USB stick, so it could be read whether the RAID arrays are assembled or not. But I do not want to do it this way this time.