Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: btech on July 18, 2006, 12:17:08 AM

Title: Change boot kernel remotely
Post by: btech 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
Title: grub.conf
Post by: btech 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
Title: default Boot kernel
Post by: dazza76 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
Title: found it (I think)
Post by: btech 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
Title: Changing kernel boot
Post by: dazza76 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
Title: reconfigure?
Post by: btech on July 18, 2006, 05:28:18 AM
Try reconfigure ... I didn't have any problems getting it to work (only edited grub.conf).
Title: Re: found it (I think)
Post by: CharlieBrady 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.