Bug 1819817 - upgrading grub2 leads to an error / setfileicon
Summary: upgrading grub2 leads to an error / setfileicon
Keywords:
Status: CLOSED DUPLICATE of bug 1722766
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1827922 1829137 1830399 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-01 16:06 UTC by bugzilla
Modified: 2020-05-04 07:00 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-04 07:00:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description bugzilla 2020-04-01 16:06:17 UTC
Description of problem:
when upgrading to latest grub2 package, there are several errors

Version-Release number of selected component (if applicable):
grub2-common-1:2.04-11.fc32.noarch

How reproducible:
guess always

Steps to Reproduce:
1. install an older version of grub2
2. install the version mentioned above
3.

Actual results:
  Aktualisieren         : grub2-common-1:2.04-11.fc32.noarch              7/425 
Fehler: lsetfilecon: (/boot/efi/EFI/fedora, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt
...
  Ausgeführtes Scriptlet: lvm2-2.03.09-1.fc32.x86_64                                                                                                        118/425 
  Aktualisieren         : grub2-efi-ia32-1:2.04-11.fc32.x86_64                                                                                              119/425 
Fehler: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt
Fehler: lsetfilecon: (/boot/efi/EFI/fedora/grubia32.efi;5e84bab5, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt

  Aktualisieren         : grub2-efi-x64-1:2.04-11.fc32.x86_64                                                                                               120/425 
Fehler: lsetfilecon: (/boot/efi/EFI/fedora/grubx64.efi;5e84bab5, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt

  Aktualisieren         : grub2-pc-1:2.04-11.fc32.x86_64                                                                                                    121/425 
  Aktualisieren         : grub2-tools-extra-1:2.04-11.fc32.x86_64                    

Expected results:
no error

Additional info:

Comment 1 Steve 2020-04-03 13:15:53 UTC
Those same errors occurred during an update in an F32 VM:

# fgrep -C1 -n lsetfilecon /var/log/dnf.rpm.log
170-2020-03-31T13:50:09Z SUBDEBUG Upgrade: grub2-common-1:2.04-11.fc32.noarch
171:2020-03-31T13:50:09Z INFO error: lsetfilecon: (/boot/efi/EFI/fedora, system_u:object_r:boot_t:s0) Operation not supported
172-
--
405-2020-03-31T13:54:45Z SUBDEBUG Upgrade: grub2-efi-ia32-1:2.04-11.fc32.x86_64
406:2020-03-31T13:54:45Z INFO error: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Operation not supported
407:error: lsetfilecon: (/boot/efi/EFI/fedora/grubia32.efi;5e834a82, system_u:object_r:boot_t:s0) Operation not supported
408-
409-2020-03-31T13:54:46Z SUBDEBUG Upgrade: grub2-efi-x64-1:2.04-11.fc32.x86_64
410:2020-03-31T13:54:46Z INFO error: lsetfilecon: (/boot/efi/EFI/fedora/grubx64.efi;5e834a82, system_u:object_r:boot_t:s0) Operation not supported
411-
--
479-2020-03-31T13:55:33Z SUBDEBUG Upgrade: grub2-efi-ia32-cdboot-1:2.04-11.fc32.x86_64
480:2020-03-31T13:55:33Z INFO error: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Operation not supported
481:error: lsetfilecon: (/boot/efi/EFI/fedora/fonts/unicode.pf2;5e834a82, system_u:object_r:boot_t:s0) Operation not supported
482:error: lsetfilecon: (/boot/efi/EFI/fedora/gcdia32.efi;5e834a82, system_u:object_r:boot_t:s0) Operation not supported
483-
484-2020-03-31T13:55:33Z SUBDEBUG Upgrade: grub2-efi-x64-cdboot-1:2.04-11.fc32.x86_64
485:2020-03-31T13:55:33Z INFO error: lsetfilecon: (/boot/efi/EFI/fedora/gcdx64.efi;5e834a82, system_u:object_r:boot_t:s0) Operation not supported
486-

Comment 2 Steve 2020-04-03 13:22:09 UTC
This looks like an selinux configuration problem:

# ls -R -1Z /boot/efi/EFI/fedora
/boot/efi/EFI/fedora:
system_u:object_r:dosfs_t:s0 BOOTIA32.CSV
system_u:object_r:dosfs_t:s0 BOOTX64.CSV
system_u:object_r:dosfs_t:s0 fonts
system_u:object_r:dosfs_t:s0 gcdia32.efi
system_u:object_r:dosfs_t:s0 gcdx64.efi
system_u:object_r:dosfs_t:s0 grub.cfg
system_u:object_r:dosfs_t:s0 grub.cfg.ORIG
system_u:object_r:dosfs_t:s0 grubenv
system_u:object_r:dosfs_t:s0 grubenv.BAK1
system_u:object_r:dosfs_t:s0 grubenv.BAK2
system_u:object_r:dosfs_t:s0 grubia32.efi
system_u:object_r:dosfs_t:s0 grubx64.efi
system_u:object_r:dosfs_t:s0 mmia32.efi
system_u:object_r:dosfs_t:s0 mmx64.efi
system_u:object_r:dosfs_t:s0 shim.efi
system_u:object_r:dosfs_t:s0 shimia32.efi
system_u:object_r:dosfs_t:s0 shimia32-fedora.efi
system_u:object_r:dosfs_t:s0 shimx64.efi
system_u:object_r:dosfs_t:s0 shimx64-fedora.efi

/boot/efi/EFI/fedora/fonts:
system_u:object_r:dosfs_t:s0 unicode.pf2

Comment 3 Steve 2020-04-03 13:34:39 UTC
For the record, my F32 VM is booting with EFI:

$ journalctl -b --no-hostname | grep -m 1 EFI
Apr 03 12:33:46 kernel: efi: EFI v2.70 by EDK II

# mount -t vfat
/dev/vda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro)

Comment 4 Andrey 2020-04-26 16:52:01 UTC
I had today the same errors while upgrading grub2 on F31:

Upgrading        : grub2-common-1:2.02-108.fc31.noarch                  1/117 
error: lsetfilecon: (/boot/efi/EFI/fedora, system_u:object_r:boot_t:s0) Operation not supported

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

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

Upgrading        : grub2-efi-ia32-cdboot-1:2.02-108.fc31.x86_64        51/117 
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;5ea5b550, system_u:object_r:boot_t:s0) Operation not supported
error: lsetfilecon: (/boot/efi/EFI/fedora/gcdia32.efi;5ea5b550, system_u:object_r:boot_t:s0) Operation not supported

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

Comment 5 Andrey 2020-05-01 11:20:49 UTC
This week I have upgraded my system to F32. Today I have applied recent updates including grub-related ones and here is the output:

Running scriptlet: grub2-common-1:2.04-15.fc32.noarch                     1/1 
Upgrading        : grub2-common-1:2.04-15.fc32.noarch                   1/150 
error: lsetfilecon: (/boot/efi/EFI/fedora, system_u:object_r:boot_t:s0) Operation not supported

Upgrading        : grub2-pc-1:2.04-15.fc32.x86_64                      62/150 
Upgrading        : grub2-efi-ia32-1:2.04-15.fc32.x86_64                63/150 
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;5eac04cf, system_u:object_r:boot_t:s0) Operation not supported

Upgrading        : grub2-efi-x64-1:2.04-15.fc32.x86_64                 64/150 
error: lsetfilecon: (/boot/efi/EFI/fedora/grubx64.efi;5eac04cf, system_u:object_r:boot_t:s0) Operation not supported

Upgrading        : grub2-tools-extra-1:2.04-15.fc32.x86_64             65/150 
Upgrading        : grub2-efi-ia32-cdboot-1:2.04-15.fc32.x86_64         66/150 
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;5eac04cf, system_u:object_r:boot_t:s0) Operation not supported
error: lsetfilecon: (/boot/efi/EFI/fedora/gcdia32.efi;5eac04cf, system_u:object_r:boot_t:s0) Operation not supported

Upgrading        : grub2-efi-x64-cdboot-1:2.04-15.fc32.x86_64          67/150 
error: lsetfilecon: (/boot/efi/EFI/fedora/gcdx64.efi;5eac04cf, system_u:object_r:boot_t:s0) Operation not supported

Upgrading        : grub2-tools-efi-1:2.04-15.fc32.x86_64               68/150

Comment 6 Andrey 2020-05-03 18:00:35 UTC
*** Bug 1829137 has been marked as a duplicate of this bug. ***

Comment 7 Andrey 2020-05-03 18:02:05 UTC
*** Bug 1830399 has been marked as a duplicate of this bug. ***

Comment 8 Andrey 2020-05-03 18:03:12 UTC
*** Bug 1827922 has been marked as a duplicate of this bug. ***

Comment 9 Panu Matilainen 2020-05-04 07:00:52 UTC

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


Note You need to log in before you can comment on or make changes to this bug.