Kernel panic - how to use old kernal as standard?

Hello, now have a complete newbie question :wink:

how can you adjust Debian Grub to start with an older kernel?

And my hardware can not run with the current kernel - kernel panic.

If I manually select the 3.10.0-693.21.1.el7.x86_64 in the boot menu, everything will work.

I’ve looked at the conf files of grub.d and grub.cfg sowiet everything logically synonymous the process would be me as far as clear, but I can not find the entries where you changed the list.

I’m just too stupid for that, or I have rarely used it until now.

One way to auto-select a different kernel boot entry for CentOS 7 is:

List current grub menu entries:

awk -F\' '$1=="menuentry " {print i++ " -> " $2}' /etc/grub2.cfg

Set the new default menu entry. We can specify the menu entry by number:

grub2-set-default 1

or by name:

grub2-set-default "CentOS Linux (3.10.0-693.21.1.el7.x86_64) 7 (Core)"

Rebuild grub config:

grub2-mkconfig -o /boot/grub2/grub.cfg  # on BIOS-based machines
# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg  # on UEFI-based machines



Thank you so much!

On my fedora28 laptop I use grubby command to establish this:
in terminal perform: sudo grubby --set-default /boot/vmlinuz-your-desired-boot-kernel
Note: the kernel must be available in /boot

I believe grubby command is available on CentOS too.

1 Like