Red Hat Bugzilla – Bug 1248799
RFE: default backup of MBR, grub.cfg, EFI settings when modified
Last modified: 2016-07-19 13:17:05 EDT
Description of problem: Please enhance grub2 to create a backup whenever it modifies the MasterBootRecord (MBR), the grub configuration file (grub.cfg, etc.), or the EFI settings. Backing up by default would be a large improvement in Usability and Reliability. I've had two grub installs fail just this week, and having backups by default would have been much more pleasant.
For instance; a file for the old MBR, a file for a copy of the old grub configuration, a file for the shell script which would re-create the old EFI settings. Put the files in the same directory as the configuration file grub.cfg, and use a filename which contains a representation of the time of modification. Possible examples:
sda1-1434005789.mbr # epoch date in seconds
Version-Release number of selected component (if applicable):
How reproducible: every time
Steps to Reproduce:
Actual results: MBR, grub.cfg, and/or EFI variables are written without keeping a backup.
Expected results: Old MBR, grub.cfg, and/or EFI variables are saved into backup files whoe name contains a representation of the date pf modification.
Additional info: Sometimes I forget to make backups by hand in advance. Also, it would be very convenient for the backup files to reside in the _new_ system being installed. Doing this by hand takes an extra step.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.