2 minute read

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> where n 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> where style can be one of

    • menu: always show the menu
    • countdown: Wait for user input before showing the menu or boot the default if none given. One-liner indicates the remaining time.
    • hidden: Same as countdown 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