grub : how to edit grub config by command / script ?

Ranjan Maitra maitra.mbox.ignored at
Wed Nov 26 21:21:05 UTC 2014


I believe that you have to go into:


and edit according to your needs.

Then you  have to use:

sudo bash -x grub2-mkconfig -o /boot/grub2/grub.cfg

This should update grub for now and for ever.


On Thu, 27 Nov 2014 02:10:11 +0530 santosh <santosh.iitg at> wrote:

> I am using CentOS 6 and grub 0.97
> 1.  Launched a Virtual Machine (VM) with CentOS 6.   (This step is done.)
> 2.  After the VM comes up,  copy latest kernel and initrd from remote
> server to /boot
>      through a script present at /etc/init.d/ (This step is done)
> 3.  How to edit grub config file either by command or by script (but
> not manually), to update
>      the new kernel and initrd so that next time it boots up with the
> new kernel  ?
> Thanks
> Santosh
> -- 
> users mailing list
> users at
> To unsubscribe or change subscription options:
> Fedora Code of Conduct:
> Guidelines:
> Have a question? Ask away:

Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.

FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit to find out more!

More information about the users mailing list