My Oracle Support Banner

Oracle Linux: How to Change Default Kernel on GRUB2 Using the grubby Tool (Doc ID 2605359.1)

Last updated on SEPTEMBER 21, 2021

Applies to:

Linux OS - Version Oracle Linux 7.0 and later
Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Linux x86-64


The purpose of this document is to explain how to make persistent changes to a grub 2 menu using the grubby tool.

The grubby tool can be used to read information from, and make persistent changes to, the grub.cfg file. It enables, for example, changing GRUB 2 menu entries to specify what arguments to pass to a kernel on system start and changing the default kernel.

In Oracle Linux Linux 7, if grubby is invoked manually without specifying a GRUB 2 configuration file, it defaults to searching for /etc/grub2.cfg, which is a symbolic link to the /boot/grub2/grub.cfg file.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.