Page 5 of 5

Re: Which kernel should I use ?

Posted: Fri Oct 05, 2018 5:15 pm
by arky217
asqwerth wrote:
Thu Oct 04, 2018 11:53 pm
arky217 wrote:
Thu Oct 04, 2018 6:53 pm
dolphin_oracle wrote:
Thu Oct 04, 2018 10:09 am
MX-Boot-Options, choose your default boot entry.
I tried this and set it to 4.9, but it still boots to 4.15.

I tried it again and checked 'Enable saving last boot choice',
but it still boots to 4.9.

In fact, after I select 4.9 and check 'Enable saving last boot choice',
and close the MX boot options window and then immediately
open the MX boot options window again, my choice is not selected.

It keeps reverting to the first option 'MX 17 Horizon'.

Is that a bug, or am I overlooking something ?

Edit: Well, I got around this by using MX boot options to make
the grub menu 'flat' instead of 'tree' and then editing the grub
file directly and changing 'grub_default=saved' to 'grub_default=2'
which is the selection for kernel 4.9.
Then, of course, did a grub-update. Works now.
You didn't click on the APPLY button to get the update-grub process to run.
Oh yes, every time I tried, I clicked the apply button and it indicated
that it was updating grub, but it did not retain my selection.

Re: Which kernel should I use ?

Posted: Sat Oct 06, 2018 1:46 am
by asqwerth
Do you have another distro on your system, whose grub is the main one?

Re: Which kernel should I use ?

Posted: Sat Oct 06, 2018 4:23 am
by fehlix
arky217 wrote:
Thu Oct 04, 2018 6:53 pm
Is that a bug, or am I overlooking something ?
... make the grub menu 'flat' instead of 'tree' and then editing the grub
file directly and changing 'grub_default=saved' to 'grub_default=2'
Yes, it's a known issue with submenu. Instead of flat and GRUB_DEFAULT=2. You can keep submenu and set GRUB_DEFAULT="1->2", manually, to boot into the 3rd menuentry of the 1st submenu automatically after timeout.

Re: Which kernel should I use ?

Posted: Sat Oct 06, 2018 4:18 pm
by Stevo
Rebooting to the last boot selection can also be set in GRUB Customizer.

Re: Which kernel should I use ?

Posted: Sun Oct 07, 2018 6:01 am
by baldyeti
I have the following lines in /etc/default/grub:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

and grub remembers to boot from the last selected entry, even when that is 'MX 17 Horizon, with Linux 4.9.0-8-amd64' which lives under the "advanced" submenu.One just needs to run "update-grub2" as root after adding the 2 lines above.

Re: Which kernel should I use ?

Posted: Tue Oct 09, 2018 8:03 am
by Richard
Just a note:

Had a similar, temporary problem with not booting to my choice of kernel.

I had similar setup to the entries above, including the following:
GRUB_DEFAULT=4
GRUB_SAVEDEFAULT=true

and for some reason, I changed:
GRUB_SAVEDEFAULT=false

after which, grub always booted the first entry.

Changed back to this:
GRUB_SAVEDEFAULT=true
and it works as expected, always booting entry #4.