Bug 2047979
| Summary: | rpm -V / --verify reports modified /boot/efi/EFI/redhat/grubaa64.efi | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Jiri Jaburek <jjaburek> |
| Component: | grub2 | Assignee: | Bootloader engineering team <bootloader-eng-team> |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | mdomonko, mlewando, pmatilai, rharwood |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | aarch64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | grub2-2.06-44.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-15 11:18:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jiri Jaburek
2022-01-29 00:22:24 UTC
> so maybe some anomaly with a vfat filesystem?
I suspect so. fat/vfat is an Exciting filesystem. By design, mtime is only tracked to a resolution of 2 seconds - which could explain the "sometimes" behavior you're seeing. It also lacks a concept of users/groups, so there may be trouble with who can set that stuff (allow_utime) but that seems less likely.
I wonder if RPM is aware of this time resolution behavior on vfat?
I can reproduce this on an aarch64 machine:
# stat -c %Y /boot/efi/EFI/redhat/grubaa64.efi
1646945898
# rpm -q --queryformat "[%{FILENAMES} %{FILEMTIMES}\n]" grub2-efi-aa64
[...]
/boot/efi/EFI/redhat/grubaa64.efi 1646931498
[...]
1646945898-1646931498 = 14400 = 3600*4
There's an exactly 4 hour difference (in my case) between what's recorded in the rpmdb for this file and the actual mtime on disk. That doesn't seem random, it likely is some kind of filesystem and/or timezone skew.
Although, contrary to Jiri's observation, reinstalling the grub2-efi-aa64 package fixes it for me, as in, the file no longer shows up in "rpm -V".
Yeah that does sound like some timezone issue. In general, rpm only really supports posix filesystems, EFI is a new anomaly in that picture of course. One simple way to avoid fubar verify errors from what is known a bit wonky fs is to just filter them out explicitly, eg %verify(not mtime) /boot/efi/EFI/redhat/grubaa64.efi By far the simplest fix to this is to deal with the special content on a special filesystem locally in the one place that knows about that specialty, in grub2. Just tell rpm to ignore the timestamps on anything on what is known to be a VFAT fs, see above comment. Fine, we can work around rpm here. reproduced using grub2-2.06-38.el9 in RHEL-9.1.0-20220810.1 # rpm -V grub2-efi-aa64 .......T. /boot/efi/EFI/redhat/grubaa64.efi tested using grub2-2.06-44.el9 # rpm -V grub2-efi-aa64 (no output) setting Verified: Tested Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (grub2 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:8326 |