Bug 1777237

Summary: error: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Operation not supported
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: fmartine, lkundrak, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-27 10:40:21 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:
Attachments:
Description Flags
full dnf output
none
rpm -qa output none

Description Kamil Páral 2019-11-27 09:07:23 UTC
Description of problem:
When I upgraded from
grub2-1:2.02-100.fc31.noarch
to
grub2-1:2.02-102.fc31.x86_64
I saw the following errors in dnf output:

  Upgrading        : grub2-efi-ia32-1:2.02-102.fc31.x86_64                                                     35/108 
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;5dde3bc9, system_u:object_r:boot_t:s0) Operation not supported

  Upgrading        : grub2-efi-x64-1:2.02-102.fc31.x86_64                                                      36/108 
error: lsetfilecon: (/boot/efi/EFI/fedora/grubx64.efi;5dde3bc9, system_u:object_r:boot_t:s0) Operation not supported

  Upgrading        : python2-pillow-6.1.0-4.fc31.x86_64                                                        37/108 
  Upgrading        : python3-pillow-6.1.0-4.fc31.x86_64                                                        38/108 
  Upgrading        : grub2-efi-ia32-cdboot-1:2.02-102.fc31.x86_64                                              39/108 
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;5dde3bc9, system_u:object_r:boot_t:s0) Operation not supported
error: lsetfilecon: (/boot/efi/EFI/fedora/gcdia32.efi;5dde3bc9, system_u:object_r:boot_t:s0) Operation not supported

  Upgrading        : grub2-efi-x64-cdboot-1:2.02-102.fc31.x86_64                                               40/108 
error: lsetfilecon: (/boot/efi/EFI/fedora/gcdx64.efi;5dde3bc9, system_u:object_r:boot_t:s0) Operation not supported

  Upgrading        : grub2-tools-efi-1:2.02-102.fc31.x86_64                                                    41/108 

I'm running with selinux in permissive mode.

Version-Release number of selected component (if applicable):
grub2-1:2.02-102.fc31.x86_64

Comment 1 Kamil Páral 2019-11-27 09:11:52 UTC
Created attachment 1640037 [details]
full dnf output

Comment 2 Kamil Páral 2019-11-27 09:12:13 UTC
Created attachment 1640038 [details]
rpm -qa output

Comment 3 Javier Martinez Canillas 2019-11-27 09:18:22 UTC
Hello Kamil,

This isn't a new issue, it has already been filed as Bug #1760677.

Comment 4 Javier Martinez Canillas 2019-11-27 09:24:12 UTC
Sorry, that's a duplicate too. I meant Bug #1722766.

The root cause is that in /boot/efi the EFI System Partition is mounted, that partition contains a vfat filesystem so it's not correct to try setting labels on these files since vfat doesn't support extended attributes to store them.

Comment 5 Kamil Páral 2019-11-27 10:40:21 UTC
OK, thanks, duping.

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