Bug 1248799 - RFE: default backup of MBR, grub.cfg, EFI settings when modified
RFE: default backup of MBR, grub.cfg, EFI settings when modified
Status: CLOSED EOL
Product: Fedora
Classification: Fedora
Component: grub2 (Show other bugs)
22
x86_64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Peter Jones
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-30 16:59 EDT by John Reiser
Modified: 2016-07-19 13:17 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-19 13:17:05 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Reiser 2015-07-30 16:59:55 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:
     grub.cfg-2015-07-30T1345
     sda1-1434005789.mbr   # epoch date in seconds
     efivars-2015-07-30T1345.sh


Version-Release number of selected component (if applicable):
grub2-2.02-0.16.fc22.x86_64


How reproducible: every time


Steps to Reproduce:
1.Install Fedora.
2.
3.

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.
Comment 1 Fedora End Of Life 2016-07-19 13:17:05 EDT
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
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.