Description
Hello, I am using rpm-ostree-toolbox to create a customized version of CentOS 7. I am using Fedora 22 as the building host. I try to create an installed, but the installation fails due a missing file related to grub. And this file is supposed to be in the tree, but is not indeed. The installer complains about a file /usr/lib/ostree-boot/grub2/grubenv which is a link to /boot/efi/EFI/centos/grubenv, but this one does not exist and I can check it using "ostree ls".
I have generated the repository using rpm-ostree with the following command (the files are attached to this ticket):
# rpm-ostree-toolbox treecompose -c centos-atomic-egym.ini --ostreerepo repo
It creates a directory repo and in my case I check first the link:
# ostree --repo=repo ls centos-atomic-egym/7/x86_64/standard /usr/lib/ostree-boot/grub2
d00755 0 0 0 /usr/lib/ostree-boot/grub2
l00777 0 0 0 /usr/lib/ostree-boot/grub2/grubenv -> /boot/efi/EFI/centos/grubenv
d00755 0 0 0 /usr/lib/ostree-boot/grub2/themes
Then I check for the file /boot/efi/EFI/centos/grubenv:
# ostree --repo=repo ls centos-atomic-egym/7/x86_64/standard /boot/efi/EFI/centos/grubenv
error: No such file or directory: /boot/efi/EFI/centos/grubenv
The directory where it is contained:
# ostree --repo=repo ls centos-atomic-egym/7/x86_64/standard /boot/efi/EFI/centos
d00755 0 0 0 /boot/efi/EFI/centos
-00644 0 0 128 /boot/efi/EFI/centos/BOOT.CSV
-00644 0 0 1268168 /boot/efi/EFI/centos/MokManager.efi
-00755 0 0 1070976 /boot/efi/EFI/centos/gcdx64.efi
-00755 0 0 1070976 /boot/efi/EFI/centos/grubx64.efi
-00644 0 0 1376112 /boot/efi/EFI/centos/shim-redhat.efi
-00644 0 0 1384792 /boot/efi/EFI/centos/shim.efi
d00755 0 0 0 /boot/efi/EFI/centos/fonts
This ref revision is 8d64657fcf24070f9ceace0b4332eea114ab1df2dc1bded3c03647c6a27e22ee.
The error when the installer fails is:
Error: [('/mnt/sysimage/ostree/deploy/centos-atomic-egym/deploy/8d64657fcf24070f9ceace0b4332eea114ab1df2dc1bded3c03647c6a27e22ee.0/usr/lib/ostree-boot/grub2/grubenv', '/mnt/sysimage/boot/grub2/grubenv', "[Errno 2] No such file or directory: '/mnt/sysimage/ostree/deploy/centos-atomic-egym/deploy/8d64657fcf24070f9ceace0b4332eea114ab1df2dc1bded3c03647c6a27e22ee.0/usr/lib/ostree-boot/grub2/grubenv'")].
The configuration files and error messages generated by the installer can be found at:
https://github.com/leandrosansilva/custom-centos-atomic-builder
Thank you in advance.
ps: please let me know if I should have reported this bug to the centos developers.