Code: Select all
[root@host ~]# yum update
Updating Subscription Management repositories.
(snip)
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Upgrading:
grub2-common noarch 1:2.06-80.el9_4 rhel-9-for-x86_64-baseos-rpms 916 k
grub2-efi-x64 x86_64 1:2.06-80.el9_4 rhel-9-for-x86_64-baseos-rpms 1.3 M
Transaction Summary
================================================================================
Upgrade 2 Packages
Total download size: 2.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): grub2-common-2.06-80.el9_4.noarch.rpm 11 MB/s | 916 kB 00:00
(2/2): grub2-efi-x64-2.06-80.el9_4.x86_64.rpm 14 MB/s | 1.3 MB 00:00
--------------------------------------------------------------------------------
Total 23 MB/s | 2.2 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : grub2-common-1:2.06-80.el9_4.noarch 1/4
Error unpacking rpm package grub2-common-1:2.06-80.el9_4.noarch
Upgrading : grub2-efi-x64-1:2.06-80.el9_4.x86_64 2/4
error: unpacking of archive failed on file /boot/efi/EFI/redhat: cpio: chown failed - Directory not empty
error: grub2-common-1:2.06-80.el9_4.noarch: install failed
Error unpacking rpm package grub2-efi-x64-1:2.06-80.el9_4.x86_64
Verifying : grub2-common-1:2.06-80.el9_4.noarch 1/4
Verifying : grub2-common-1:2.06-77.el9.noarch 2/4
Verifying : grub2-efi-x64-1:2.06-80.el9_4.x86_64 3/4
Verifying : grub2-efi-x64-1:2.06-77.el9.x86_64 4/4
Installed products updated.
Failed:
grub2-common-1:2.06-77.el9.noarch grub2-common-1:2.06-80.el9_4.noarch
grub2-efi-x64-1:2.06-77.el9.x86_64 grub2-efi-x64-1:2.06-80.el9_4.x86_64
Error: Transaction failed
[root@host ~]#
Code: Select all
[root@host ~]# ls -ld /boot/efi
drwx------. 3 root veeam 4096 Jan 1 1970 /boot/efi
[root@host ~]#
The workaround is therefore simple. Change things back to how they were:
Code: Select all
umount /boot/efi && mount /boot/efi