LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   changing grub configuration on centos 6 is not actually doing anything (https://www.linuxquestions.org/questions/red-hat-31/changing-grub-configuration-on-centos-6-is-not-actually-doing-anything-4175448173/)

codraziel 02-01-2013 09:38 AM

changing grub configuration on centos 6 is not actually doing anything
 
Hi all ,I have a centos 6.3(final) dedicated server running at the moment which was just reinstalled.

When trying to install openvz I got the following message during the yum installation:

grubby fatal error: unable to find a suitable template

I then decided to manually edit the grub.conf and menu.lst files(which werent linked for some reason)
after adding the necessary entries into those files I rebooted, for some reason it still ran the default kernel.

then out of interest I tried changing the menu timeout, and to my surprise not even that worked.
Anybody know why none of my changes to grubs configuration are taking?

I would like to avoid reinstalling since its kind of pricey

John VV 02-01-2013 09:03 PM

Quote:

I then decided to manually edit the grub.conf and menu.lst files(which werent linked for some reason)
they are supposed to be linked

if you edit one you automatically edit the other

so only edit one of them

i normally just edit grub.conf

it is my understanding that "openvz" replaces the default kernel with a different one

did you rebuild the boot image using "dracut" ?
for example something like this
Code:

su -

mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-Original.img

dracut /boot/initramfs-$(uname -r).img $(uname -r)


codraziel 02-01-2013 09:16 PM

Yea, it loads a different kernel, which is usually easily configured in the grub.conf/menu.lst.

I have never even heard of dracut let alone used it :/ what is its function?

John VV 02-02-2013 08:57 PM

see the manual page
Code:

man dracut
-----------
dracut --help

or
https://dracut.wiki.kernel.org/index.php/Main_Page

it is in /sbin


All times are GMT -5. The time now is 10:36 AM.