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:
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-
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
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)
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
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
*** Bug 1829137 has been marked as a duplicate of this bug. ***
*** Bug 1830399 has been marked as a duplicate of this bug. ***
*** Bug 1827922 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 1722766 ***