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:
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'.)
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 ...
*** This bug has been marked as a duplicate of bug 1722766 ***
This is not a bug in grub2, closing it as duplicate of bug #1722766.