There is one scenario where this could cause regression. If xen is being used as a hypervisor and pygrub being used to load kernels, and linux-ec2 being used as a general purpose xen guest kernel.
linux-ec2 is not intended to be a general purpose guest kernel, but it could be being used by some parties in that manner.
If deemed necessary, I could modify the above logic to allow a config file (or debconf seed) to specify a list of blacklisted strings. I could then write that config/seed in the building of the uec images, so they would blacklist *-ec2.
There is one scenario where this could cause regression. If xen is being used as a hypervisor and pygrub being used to load kernels, and linux-ec2 being used as a general purpose xen guest kernel.
linux-ec2 is not intended to be a general purpose guest kernel, but it could be being used by some parties in that manner.
If deemed necessary, I could modify the above logic to allow a config file (or debconf seed) to specify a list of blacklisted strings. I could then write that config/seed in the building of the uec images, so they would blacklist *-ec2.