Skip to content

distro/rhel: set default_kernel to kernel-core on Oracle Linux 9 - #2753

Merged
supakeen merged 2 commits into
osbuild:mainfrom
achilleas-k:oracle-default-kernel
Oct 9, 2026
Merged

supakeen merged 2 commits into
osbuild:mainfrom
achilleas-k:oracle-default-kernel

Conversation

@achilleas-k

Copy link
Copy Markdown
Member

Oracle Linux's /usr/lib/kernel/install.d/20-grub.install has a condition that compares the absolute names between kernels and doesn't update the default kernel entry when kernel-core is updated. The RHEL version of the script strips the -core suffix so this was never an issue there.

Thanks to @supakeen for digging into this.

Fixes #2752

Oracle Linux's /usr/lib/kernel/install.d/20-grub.install has a condition
that compares the absolute names between kernels and doesn't update the
default kernel entry when `kernel-core` is updated.
The RHEL version of the script strips the `-core` suffix so this was
never an issue there.

Thanks to Simon for digging into this.

Fixes osbuild#2752
@achilleas-k
achilleas-k requested a review from a team as a code owner October 8, 2026 17:24
@achilleas-k

Copy link
Copy Markdown
Member Author

I verified that Oracle manifests are affected by this change, but we don't maintain checksums for those.

supakeen
supakeen previously approved these changes Oct 8, 2026

@supakeen supakeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward enough, we should get onto those checksums for more distros.

@omenos

omenos commented Oct 8, 2026

Copy link
Copy Markdown

As a preemptive measure, Oracle Linux 10 performs the same check in 20-grub.install.

croissanne
croissanne previously approved these changes Oct 8, 2026
@achilleas-k

Copy link
Copy Markdown
Member Author

As a preemptive measure, Oracle Linux 10 performs the same check in 20-grub.install.

Might as well.

The same difference exists in the kernel scripts on OL10.
@achilleas-k
achilleas-k dismissed stale reviews from croissanne and supakeen via b53a232 October 8, 2026 17:44
@supakeen
supakeen enabled auto-merge October 8, 2026 18:07
@supakeen
supakeen added this pull request to the merge queue Oct 8, 2026
Merged via the queue into osbuild:main with commit a6df7b5 Oct 9, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set default_kernel to kernel-core for Oracle Linux

4 participants