The partitioning is done by the firmware / initrd in flash. Proprietary (no source).

If you have Hijack installed, then I think my upgrader.c will work with my bigdisk builder images, but I don't remember for sure (in europe right now; no empeg to play with).

Cheers