Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-61144

Can't update Grub2 in bootc system

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • CentOS Stream 9
    • grub2
    • No
    • None
    • rhel-sst-desktop-firmware-bootloaders
    • ssg_display
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

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

      I want to display the GRUB menu but I can't update the GRUB configuration.

      What is the impact of this issue to you?

       

      I can't select boot entries to rescue my system.

      Please provide the package NVR for which the bug is seen:

      grub2-common-2.06-92.el9.noarch

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Create a centos-stream9 image with bootc-image-builder, ref. https://github.com/osbuild/bootc-image-builder
      2. Create grub config
        # cat /etc/default/grub 
        GRUB_TIMEOUT=5
        
      3.  Update the config
        # grub2-mkconfig -o /boot/grub2/grub.cfg

      Expected results

      The menu is updated. The menu is shown after next boot.

      Actual results

      /usr/sbin/grub2-probe: error: failed to get canonical path of `composefs'.
      

      Additional notes

      I also tried to update during container build but that one failed, too:

      STEP 7/8: RUN grub2-mkconfig -o /boot/grub2/grub.cfg
      /usr/sbin/grub2-probe: error: failed to get canonical path of `overlay'.
      Error: building at STEP "RUN grub2-mkconfig -o /boot/grub2/grub.cfg": while running runtime: exit status 1

              bootloader-eng-team bootloader -eng-team
              smitterl@redhat.com Sebastian Mitterle
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: