Just skipping allocating unused partitions, and to set the size to 0 the type has to be "blank" to skip calling cgpt. (not sure if failing on zero-length partitions is a bug in cgpt or a spec limitation, but either way it breaks right now)