How to make a Kernel default?

I have 3 kernels installed (5.8.6-1, 5.4.64-1 and 4.19.144-1)
I want to make the last LTS Kernel (5.4.64-1) default, but if i don’t choose it each time on GRUB it starts with the latest (5.8.6-1).

1 Like

You can select the kernel in the GRUB menu under advanced settings. That should make it your default.

verify the file /etc/default/grub - it should contain lines like this

GRUB_DEFAULT=saved

...

GRUB_SAVEDEFAULT=true

...

Then depending on your latest choice it will always start on the saved entry.

3 Likes

I have those lines on GRUB but like i said if i start Manjaro without going to advanced options it starts with the latest kernel.
Also, i can’t remove it, maybe it has to do with this, when trying to remove it through manjaro settings manager:

linux58
linux58-virtualbox-host-modules

Starting
checking dependencies…
:: removing linux58 breaks dependency ‘linux58’ required by linux-latest
error: failed to prepare transaction (could not satisfy dependencies)

Done …

For the time being linux58 is linux-latest - and probably the package linux-latest is installed. Have you tried to remove it using pacman?

sudo pacman -Rns linux-latest
2 Likes

Thank you, i removed linux-latest and after i could remove linux58.
However GRUB continues to assume still the latest kernel available (now 5.4.64-1) as default, but for the time being it works for me :wink:

I have a similar problem, I installed mikah 20.1 xfce a week ago without problems
checking the kernel found it was running 5.8.6-1 I installed the latest LTS 5.4.64-1 but I can only select it in the GRUB menu under advanced settings; it will not save as default.
I checked the grub file and it contains ```
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

I have had no problems so far but should I try and remove the latest kernel
as I would prefer to use a recommended one while I learn manjaro linux

run sudo grub-mkconfig -o /boot/grub/grub.cfg it should fix the issue

Manjaro’s grub package contains update-grub, which does that…

same problem here, default = yes but manjaro still booting the highest kernel number available

GRUB_DEFAULT=saved
GRUB_TIMEOUT=2
GRUB_TIMEOUT_STYLE=menu
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=806f110d-2578-4c43-a545-cc4cac83b303 udev.log_priority=3"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to ensure that the root filesystem is mounted read-only so that
# systemd-fsck can run the check automatically. We use 'fsck' by default, which
# needs 'rw' as boot parameter, to avoid delay in boot-time. 'fsck' needs to be
# removed from 'mkinitcpio.conf' to make 'systemd-fsck' work.
# See also Arch-Wiki: https://wiki.archlinux.org/index.php/Fsck#Boot_time_checking
#GRUB_ROOT_FS_RO=true

have run sudo update-grub