Koozali.org: home of the SME Server

Change boot kernel remotely

btech

Change boot kernel remotely
« on: July 18, 2006, 12:17:08 AM »
Hi All -

I would like to change the kernel that a client SME server is booting into without having to go there (in other words, a remote shell modification to the necessary files followed bty a reboot), and also make certain that the chosen kernel is booted into on every subsequent reboot.

Where are the configuration files for this?  I assume this is handled by the boot manager...?

Thanks,
Jeff

btech

grub.conf
« Reply #1 on: July 18, 2006, 01:43:03 AM »
I found /etc/e-smith/templates/boot/grub - does anyone know if I can I modify grub.conf in order to change the boot kernel somwehow?

Thanks,
Jeff

dazza76

default Boot kernel
« Reply #2 on: July 18, 2006, 01:56:41 AM »
i would like to know to too.
i swap the boot options around in the grub.conf
but i need to change
 /etc/e-smith/templates/boot/grub/grub.conf/UpdateDefault

i dont want the smp version to run

btech

found it (I think)
« Reply #3 on: July 18, 2006, 02:01:07 AM »
It appears you can simply modify the "default=" setting in /boot/grub/grub.conf.  I don't think it's necessary to modify the template file for this.  I haven't tried it yet (the client is still actively using the server right now) but this appears to be the solution.

Jeff

dazza76

Changing kernel boot
« Reply #4 on: July 18, 2006, 02:21:16 AM »
I did try that but on reboot the default changes back to 0
the only way i got it to work is to swap the menu options around

btech

reconfigure?
« Reply #5 on: July 18, 2006, 05:28:18 AM »
Try reconfigure ... I didn't have any problems getting it to work (only edited grub.conf).

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: found it (I think)
« Reply #6 on: July 18, 2006, 05:48:11 PM »
Quote from: "btech"
It appears you can simply modify the "default=" setting in /boot/grub/grub.conf.  I don't think it's necessary to modify the template file for this.


Correct.