If the partition size is suffixed by "m" or "g" (instead of uppercase "M" or "G") it still gets validated OK, but the generate_images step then fails with a message like
ERROR: Invalid size suffix 'm' in '256m'
Obviously genimage (I'm using V19) only accepts uppercase size suffixes for M and G.
My suggestion is either convert m and g to uppercase before passing the size parameter or only accept uppercase in the validator regex.
Regards
Marcel