Manjaro: Newest Kernel not booted automatically
Problem: You installed a new kernel in Manjaro either via GUI tool or via the commandline tool mhwd-kernel. After a restart it usually is selected by default but sometimes it is not. We will explore how to rectify that.
Your first attempt should be to select the newest kernel in the grub boot menu manually. The choice at grub boot menu is usually remembered for the next boot. If this is not the case then you need to set the following value:
$ sudo vim /etc/default/grub GRUB_SAVEDEFAULT=true ...
In case the grub boot menu is not shown at bootup you can press ESC, F4 or hold down SHIFT. If this is not working then check the /etc/default/grub for the following flags:
GRUB_TIMEOUT=<n>
wheren
is the time in seconds how long the grub boot menu is shown before the default value is selected (should be at least 3s)GRUB_TIMEOUT_STYLE=<style>
wherestyle
can be one ofmenu
: always show the menucountdown
: Wait for user input before showing the menu or boot the default if none given. One-liner indicates the remaining time.hidden
: Same ascountdown
without the one-liner indication.
Whenever you changed /etc/default/grub you will need to regenerate grub's cfg file, i.e.
sudo grub-mkconfig -o /boot/grub/grub.cfg