while this sounds like a good idea, I think this is too wide-ranging: nothing is going to cleanup the accumulated uImage/uInitrd files, and ABI changes are fairly frequent. I personally don't think we should add fancy features to Ubuntu's flash-kernel before we resync with Debian.
The rest looks fine, albeit I'm not sure whether it's a good idea to only check for "efikamx" kernels.
+ ukfile= /boot/uImage- ${kvers} /boot/uInitrd- ${kvers}
+ uifile=
while this sounds like a good idea, I think this is too wide-ranging: nothing is going to cleanup the accumulated uImage/uInitrd files, and ABI changes are fairly frequent. I personally don't think we should add fancy features to Ubuntu's flash-kernel before we resync with Debian.
The rest looks fine, albeit I'm not sure whether it's a good idea to only check for "efikamx" kernels.