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

ReaR deletes /boot/grub2/grubenv on restore, which then breaks the system

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-8.10
    • rear
    • None
    • None
    • Important
    • rhel-base-utils-core
    • None
    • False
    • False
    • Hide

      None

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

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

      When restoring a UEFI RHEL8 system, the /boot/grub2/grubenv file, which is a symlink to ../efi/EFI/redhat/grubenv, is being deleted.
      This is due to having the following property in default configuration file /usr/share/rear/conf/default.conf:

      BACKUP_RESTORE_MOVE_AWAY_FILES=( /boot/grub/grubenv /boot/grub2/grubenv )
      

      This leads to issues when rebuilding/updating the Grub menu later on the recovered system, because when executing grub2-mkconfig or grubby, the tools will create /boot/grub2/grubenv as a plain file and not the symlink, causing discrepancy with boot parameters, since on UEFI RHEL8, /boot/efi/EFI/redhat/grubenv is used.

      What is the impact of this issue to you?

      Critical impact since it breaks the recovered system silently.

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

      rear-2.6-12.el8.x86_64

      How reproducible is this bug?

      Always

      Steps to reproduce

      1. Backup a RHEL8 UEFI system
      2. Restore the backup

      Expected results

      Symlink still present

      Actual results

      Symlink deleted

              rhn-support-pcahyna Pavel Cahyna
              rhn-support-rmetrich Renaud Métrich
              Pavel Cahyna Pavel Cahyna
              RHEL SST CS base utils QE Bot RHEL SST CS base utils QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: