My Oracle Support Banner

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

Last updated on APRIL 10, 2024

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

Goal

The purpose of this document is to explain how to make persistent changes to a grub2 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 GRUB2 menu entries to specify what arguments to pass to a kernel on system start and changing the default kernel.

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

 

Solution

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
Goal
Solution

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