I doubt this is LFS related if I look at your post. Are you trying to do this chapter 6.43. GRUB-1.99
If it is not LFS related, please ask a mod, use the report button, to move this thread to the appropriate forum (I see a gentoo patch; should this go to the Gentoo forum?).