Bug 1248799 - RFE: default backup of MBR, grub.cfg, EFI settings when modified
Summary: RFE: default backup of MBR, grub.cfg, EFI settings when modified
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 22
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-30 20:59 UTC by John Reiser
Modified: 2016-07-19 17:17 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 17:17:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2015-07-30 20:59:55 UTC
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 17:17:05 UTC
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.