System had kernel 3.10.0-123.el7.x86_64. Updated to 3.10.0-123.6.3.el7.x86_64. After update, grub.cfg was generated with -123.el7 as the first entry instead of 123.6.3.el7.<br />
<br />
The bug is in the logic in grub-mkconfig_lib-fix-order.patch. The version_test_numeric function was doing a gt test on a vs b, but was returning true if b was higher #, instead of false if b was higher.<br />
<br />
After correcting this, I found that sort -V would put the rescue version above the others when sorting like this. As such, I added special cases for *rescue* in version_test_gt.
↧