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

santosh santosh.iitg at gmail.com
Wed Nov 26 20:40:11 UTC 2014


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


More information about the users mailing list