scripts: gen_image_generic: allow the partition types to be set