[14:57] <puffi> Guys, not sure if this is the right channel. I have a script that checks for Ubuntu version and kernel version and installs an application based on it. I want to add in a step that will install a supported kernel version if one is not found. That part should be ok, the bit I'm unsure of is how to automate the edit to make sure the newly installed kernel will be set to the dfefault on next boot. Is thi
[14:57] <puffi> s possible?
[15:00] <apw> puffi, if we are talking x86 you can use the "title" of the kernel in grub to select a specific kernel
[15:01] <apw> puffi, in /etc/default/grub you can set GRUB_DEFAULT to a string iirc
[15:08] <puffi> apw: Thanks looking into that now
[15:09] <apw> puffi, pretty sure that is how one switches to 
[15:10] <apw> xen ..
[15:11] <puffi> apw: I'll need to know where it's going to be on the list of previous kernels.
[15:11] <puffi> hmm
[15:11] <puffi> is there a way to work that out before a reboot?
[15:11] <apw> puffi, i thought you wanted to select a specific version
[15:12] <puffi> apw: I want to automate the edit, eg. automate kernel install, change newly installed to default. reboot new default
[15:12] <puffi> you mean GRUB_DEFAULT="3.2.0-18-generic" for example
[15:12] <puffi> then it will always boot that kernel?
[15:13] <apw> puffi, that kind of thing yes, you use i think the texttual name of the menuentry
[15:13] <apw> menuentry 'Ubuntu, with Linux 3.13.0-53-generic'
[15:13] <apw> in the grub.cfg ...
[15:13] <apw> smb, i think you use that for xen right ?
[15:55] <puffi> apw: works perfectly
[15:55] <puffi> Thanks
[16:58] <smb> apw, yes