Description of problem: When installing Xen RPM package under an EFI system I get: Running scriptlet: xen-hypervisor-4.9.0-7.fc27.x86_64 35/170 /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.13.0-0.rc4.git4.1.fc27.x86_64 Found initrd image: /boot/initramfs-4.13.0-0.rc4.git4.1.fc27.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-38bc26657111482ab529de2e7fccfb70 Found initrd image: /boot/initramfs-0-rescue-38bc26657111482ab529de2e7fccfb70.img warning: %post(xen-hypervisor-4.9.0-7.fc27.x86_64) scriptlet failed, exit status 1 Non-fatal POSTIN scriptlet failure in rpm package xen-hypervisor Non-fatal POSTIN scriptlet failure in rpm package xen-hypervisor Version-Release number of selected component (if applicable): xen-4.9.0-7.fc27.x86_64 How reproducible: 100% Steps to Reproduce: 1. Install rawhide (I used Fedora-Server-dvd-x86_64-27-20170817.n.3.iso) 2. yum install xen 3. yum upgrade (a new kernel gets installed) Actual results: See above Expected results: No script errors Additional info: [root@tst063 etc]# find /boot -name 'grub*.cfg' /boot/efi/EFI/fedora/grub.cfg [root@tst063 etc]# ls -al grub2-efi.cfg lrwxrwxrwx. 1 root root 31 Aug 16 11:45 grub2-efi.cfg -> ../boot/efi/EFI/fedora/grub.cfg [root@tst063 etc]# rpm -q grub2-efi grub2-efi-2.02-8.fc27.x86_64
I don't see this with Fedora-Server-dvd-x86_64-27-20170912.n.0.iso
As the problem went away in a later build, I am assuming it is fixed.