Uploaded image for project: 'anaconda installer'
  1. anaconda installer
  2. INSTALLER-3977

Anaconda creates its own version of EFI/redhat/grub.cfg wrapper

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 24Q4
    • None

      What were you trying to do that didn't work?

      I just found out through debugging RHEL-36186 that Anaconda was implementing the stub file /boot/efi/EFI/redhat/grub.cfg by itself (pyanaconda/modules/storage/bootloader/efi.py):

      172     def write_config(self):
      173         config_path = "%s%s" % (conf.target.system_root, self.efi_config_file)
       :
      190             fd.write("search --no-floppy --fs-uuid --set=dev %s\n" % fs_uuid)
      191             fd.write("set prefix=($dev)%s\n" % grub_dir)
      192             fd.write("export $prefix\n")
      193             fd.write("configfile $prefix/grub.cfg\n")
      

      IMHO this is a bug, it should let grub2-common generate the stub file, because this file may evolve.
      For example, it will evolve because of RHEL-4388.
      Additionally without this reimplementation we would have hit RHEL-36186 earlier before RHEL9 was even released.

      Please provide the package NVR for which bug is seen:

      Anaconda RHEL9

      How reproducible:

      N/A

              kkoukiou Katerina Koukiou
              jkonecny@redhat.com Jiri Konecny
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: