Re: [PATCH v6] grub-install: Add backup and restore

2021-06-01 Thread Daniel Kiper
On Tue, Jun 01, 2021 at 11:35:36AM +0100, Dimitri John Ledkov wrote: > Refactor clean_grub_dir to create a backup of all the files, instead > of just irrevocably removing them as the first action. If available, > register atexit handle to restore the backup if errors occur before > point of no retu

[PATCH v6] grub-install: Add backup and restore

2021-06-01 Thread Dimitri John Ledkov
Refactor clean_grub_dir to create a backup of all the files, instead of just irrevocably removing them as the first action. If available, register atexit handle to restore the backup if errors occur before point of no return, or remove the backup if everything was successful. If atexit is not avail