I do not know whether parted for instance can partition a disk based on a script, or whether there is a tool that can read a partition table and create a script that parted might be able to use, but I am interested in something like that if it exists.