You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrades across minor/major RHEL/Fedora releases can skip bootloader updates due to EVR comparison #1137
When upgrading across RHEL minor releases (e.g., 9.6 -> 9.8), bootupd may skip updating EFI components like shim because the currently installed package has a higher EVR than the one in the target image, even though the target image contains the correct signed binary.
Example
A system running RHEL 9.6 has:
shim-aa64-16.1-8.el9_6.aarch64
The RHEL 9.8 image contains:
shim-aa64-16.1-7.el9.aarch64
bootupd compares these and determines 16.1-8.el9_6 > 16.1-7.el9, so it skips the shim update entirely. However, the 9.8 shim binary has proper signatures and is the one that should be installed for that release.
Should we also check the os-release when comparing EVR?
Yes I think in previous discussion I actually wanted to get away from comparing versions and just treat "changed content wins" which is exactly the semantics behind OCI.
I really think this shim situation is a pure RHEL breakage. I mean won't a dnf upgrade from 9.6 to 9.8 also leave the old shim?
I mean won't a dnf upgrade from 9.6 to 9.8 also leave the old shim?
From preliminary testing, the answer seems to be yes
$ rpmdev-vercmp 'shim-aa64-16.1-8.el9_6.aarch64''shim-aa64-16.1-7.el9.aarch64'
WARNING: hyphen in release1: aa64-16.1-8.el9_6.aarch64
WARNING: hyphen in release2: aa64-16.1-7.el9.aarch64
rpmdev-vercmp <epoch1><ver1><release1><epoch2><ver2><release2>
rpmdev-vercmp <EVR1><EVR2>
rpmdev-vercmp # with no arguments, prompt
Exit status is 0 if the EVR's are equal, 11 if EVR1 is newer, and 12 if EVR2is newer. Other exit statuses indicate problems.shim-aa64-16.1-8.el9_6.aarch64 > shim-aa64-16.1-7.el9.aarch64
To clarify, we would still be storing versions, but move away from using them to decide if an update is required, correct? Meaning we could probably drop uapi-version.
Activity
cgwalters commentedon Aug 20, 2026
Yes I think in previous discussion I actually wanted to get away from comparing versions and just treat "changed content wins" which is exactly the semantics behind OCI.
I really think this shim situation is a pure RHEL breakage. I mean won't a dnf upgrade from 9.6 to 9.8 also leave the old shim?
Johan-Liebert1 commentedon Aug 21, 2026
Yes, I think changed content wins is a good idea. We can just compare the sha which we store anyway
Johan-Liebert1 commentedon Aug 24, 2026
JIRA: https://redhat.atlassian.net/browse/OCPBUGS-112308
Johan-Liebert1 commentedon Aug 24, 2026
From preliminary testing, the answer seems to be yes
Rolv-Apneseth commentedon Aug 24, 2026
Does this relate back to #468? I was wondering about just using hashes in #1130 (comment)
krolmiki2011 commentedon Aug 24, 2026
Im using a script now
cgwalters commentedon Aug 24, 2026
The command is supposed to be invoked with just the EVR, not the full package name:
Johan-Liebert1 commentedon Aug 24, 2026
Not really, as this could happen with other package managers as well
I think @cgwalters suggestion of "changed content wins" is the way to go here
Rolv-Apneseth commentedon Aug 25, 2026
To clarify, we would still be storing versions, but move away from using them to decide if an update is required, correct? Meaning we could probably drop
uapi-version.Johan-Liebert1 commentedon Aug 25, 2026
Yeah probably. Storing the versions are still useful
cgwalters commentedon Aug 25, 2026
Hold up though did anyone file an issue against RHEL shim?
OK looks like this is not the first time https://redhat.atlassian.net/browse/RHEL-78691
Johan-Liebert1 commentedon Aug 25, 2026
We also have https://redhat.atlassian.net/browse/RHEL-248162
Johan-Liebert1 commentedon Aug 25, 2026
I think this requires a bit more nuance. There could be times where we would not want to update the bootloader/shim etc even if they change
cgwalters commentedon Aug 25, 2026
Isn't that use case
systemctl mask bootloader-upgrade.service?component: decide updates by changed content, not package versions
component: decide updates by changed content, not package versions
component: decide updates by changed content, not package versions
component: decide updates by changed content, not package versions
component: decide updates by changed content, not package versions
component: decide updates by changed content, not package versions