Bug 1785986

Summary: Error when upgrading 'grub2-common' to latest version (2.02-104)
Product: [Fedora] Fedora Reporter: Mark Harig <tpeplt>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 31CC: fmartine, lkundrak, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-27 12:36:08 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 Mark Harig 2019-12-23 00:30:42 UTC
Description of problem:
When installing (upgrading) the component 'grub2-common', an error message is displayed by 'lsetfilecon'.

Version-Release number of selected component (if applicable):
$ rpm -q grub2-common
grub2-common-2.02-104.fc31.noarch

How reproducible:
The error message is displayed whenever grub2-common is upgraded.

Steps to Reproduce:
1. To see the error message, reinstall grub2-common using dnf:

$ sudo dnf reinstall grub2-common 

2. The following error message is displayed near the end of the upgrade/installation process:

error: lsetfilecon: (/boot/efi/EFI/fedora, system_u:object_r:boot_t:s0) Operation not supported


Actual results:

$ rpm -V grub2-common
missing     /boot/efi/EFI/fedora (Permission denied)


Expected results:

Should expect that the upgrade/reinstall completes without the error message from lsetfilecon, and the rpm verification of grub2-common's files should display no error messages.


Additional info:

Comment 1 Mark Harig 2019-12-23 00:35:22 UTC
Correction:

$ rpm -V grub2-common

shows the error described, above, but

$ sudo rpm -V grub2-common

does not display the verification error.  (It was my mistake to leave out the required 'sudo'.)

Comment 2 Mark Harig 2019-12-23 02:32:08 UTC
Additional packages have this problem: 

$ sudo dnf reinstall grub2-efi-ia32
...
Reinstalling     : grub2-efi-ia32-1:2.02-104.fc31.x86_64                                                                                        1/2 
error: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Operation not supported
error: lsetfilecon: (/boot/efi/EFI/fedora/grubia32.efi;5e001ab8, system_u:object_r:boot_t:s0) Operation not supported
...

$ sudo dnf reinstall grub2-efi-x64
...
Reinstalling     : grub2-efi-x64-1:2.02-104.fc31.x86_64                                                                                         1/2 
error: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Operation not supported
error: lsetfilecon: (/boot/efi/EFI/fedora/grubx64.efi;5e001b07, system_u:object_r:boot_t:s0) Operation not supported
...

$ sudo dnf reinstall grub2-efi-ia32-cdboot
...
Reinstalling     : grub2-efi-ia32-cdboot-1:2.02-104.fc31.x86_64                                                                                 1/2 
error: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Operation not supported
error: lsetfilecon: (/boot/efi/EFI/fedora/fonts/unicode.pf2;5e001c86, system_u:object_r:boot_t:s0) Operation not supported
error: lsetfilecon: (/boot/efi/EFI/fedora/gcdia32.efi;5e001c86, system_u:object_r:boot_t:s0) Operation not supported
...

$ sudo dnf reinstall grub2-efi-x64-cdboot
...
Reinstalling     : grub2-efi-x64-cdboot-1:2.02-104.fc31.x86_64                                                                                  1/2 
error: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Operation not supported
error: lsetfilecon: (/boot/efi/EFI/fedora/fonts/unicode.pf2;5e001cca, system_u:object_r:boot_t:s0) Operation not supported
error: lsetfilecon: (/boot/efi/EFI/fedora/gcdx64.efi;5e001cca, system_u:object_r:boot_t:s0) Operation not supported
...

Comment 3 Javier Martinez Canillas 2020-01-27 12:36:08 UTC

*** This bug has been marked as a duplicate of bug 1722766 ***

Comment 4 Javier Martinez Canillas 2020-01-27 12:37:38 UTC
This is not a bug in grub2, closing it as duplicate of bug #1722766.