5

On of our Debian-servers won't boot into the newest installed kernel, and during troubleshooting I came across this:

root@server:~# grep GRUB_DEFAULT /etc/default/grub     
GRUB_DEFAULT="1>2"

I haven't seen this syntax before. Does anyone know what this means?

6

From GNU GRUB Manual 2.02: default:

If the entry is in a submenu, then it must be identified using the number, title, or id of each of the submenus starting from the top level, followed by the number, title, or id of the menu entry itself, with each element separated by ‘>’

Meaning that

GRUB_DEFAULT="1>2"

Represents the following logic:
If entry 1 is a submenu, open it and select entry 2 from there.

Which is most likely the advanced submenu leading to a fallback/backup/recovery kernel.

1

Take note that for syntax like "1>2", the index starts from 0. So if the 3rd item is a submenu inside which the 2nd item is the default you want to boot, then it should be "2>1".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.