Then again running grub2-mkconfig without creating the ramdisk first is pointless so if we do optimize ramdisk creation we can as well do grub2-mkconfig along with it.