I want to see the code which reads grub.conf, googled but not found. From below link what I understand that /boot/grub/stage2 reads grub.conf, which is a binary file. http://docs.oracle.com/cd/E37670_01/E41138/html/ch04s02.html
Stage 2 Stage 2 code reads /boot/grub/grub.conf to determine how to load the kernel. The stage 2 code is stored in the file /boot/grub/stage2:
ls -al /boot/grub/stage2
-rw-r--r--. 1 root root 125976 Jun 28 2012 /boot/grub/stage2
Any Idea where I can find it. Thanks