Can we specify which grub.conf to use in grub-install.

Hi,
Can we specify which grub.conf to use while installing grub on RHEL.
We are working on application which requires different grub configurations needed, depending on certain criteria we need to update grub with correct grub.conf.

Can we use grub-install for this purpose?

first off, it will likely be better to use menu.lst (redhat went wonky and named theirs grub.conf but it is usually a link back to menu.lst Redhat reversed that).

Also, why not just create different entries in your grub.conf/menu.lst for each option?

We are having application such that different versions of RH run on different partitions in same disk.
so we are dynamically creating grub.conf . and we want that grub.conf to be effective for next reboot. because if we modify official grub.conf after reboot some entries become invalid in our case.

So i am searching if i can specify the conf file while installing grub.

No you cannot. GRUB Legacy always uses /boot/grub/menu.lst. On RHEL, grub.conf is simply a link to menu.lst.

Again,

These are all things that can be done from a single menu.lst (grub.conf). Alternately, have you considered virtualizing your different versions of linux so you can run them concurrently? If not that, how about having more than one machine to do this on?