One of our Debian-servers won't boot into the newest installed kernel, and during troubleshooting I came across this:
grep GRUB_DEFAULT /etc/default/grub
Output:
GRUB_DEFAULT="1>2"
I haven't seen this syntax before. What does this mean?
One of our Debian-servers won't boot into the newest installed kernel, and during troubleshooting I came across this:
grep GRUB_DEFAULT /etc/default/grub
Output:
GRUB_DEFAULT="1>2"
I haven't seen this syntax before. What does this mean?
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.
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".