You are not logged in.

#1 2015-04-06 12:42:32

Sanjeev K Sharma
Member
Registered: 2013-08-14
Posts: 72

how to set the default boot kernel in /etc/default/grub or /etc/grub.d

and without messing with /boot/grub/grub.cfg  ?

I need this so that new kernels show up but do not change the default boot kernel

Is there a way to do it by file name instead of position within the menuentry / submenu list?

I found some ubuntu and fedora sugestions but all by position, none by name

AND how to set the kdump kernel as the default?

Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?

Last edited by Sanjeev K Sharma (2015-04-06 12:59:22)

Offline

#2 2015-04-06 17:48:18

Slabity
Member
Registered: 2013-12-29
Posts: 40

Re: how to set the default boot kernel in /etc/default/grub or /etc/grub.d

Sanjeev K Sharma wrote:

and without messing with /boot/grub/grub.cfg  ?

I need this so that new kernels show up but do not change the default boot kernel

Is there a way to do it by file name instead of position within the menuentry / submenu list?

I found some ubuntu and fedora sugestions but all by position, none by name

AND how to set the kdump kernel as the default?

Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?

In /etc/default/grub you can use the name of your entry you wish to use as default

GRUB_DEFAULT='Arch Linux, with Linux core repo kernel'

You can tell grub to stop using submenus by doing:

GRUB_DISABLE_SUBMENU=y

Or you can just make a purely custom menuentry in /etc/grub.d/40_custom if you'd like:

menuentry "Other Linux" {
	...
	linux <KERNEL IMAGE HERE>
	initrd <INITRD IMAGE HERE>
}

EDIT: /etc/grub/default -> /etc/default/grub

Last edited by Slabity (2015-04-07 11:16:22)

Offline

Board footer

Powered by FluxBB