grub2: update resetGfxmodeIfNeed(), do not append "auto" flag
grub2: update setup()
grub2: refactor code, dispatch errors