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

2021-05-12 Thread Dimitri John Ledkov
On Tue, 4 May 2021 at 18:41, Daniel Kiper wrote: > > Hey, > > In general much better but... > > On Thu, Apr 29, 2021 at 12:36:37PM +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. I

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

2021-05-04 Thread Daniel Kiper
Hey, In general much better but... On Thu, Apr 29, 2021 at 12:36:37PM +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 e

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

2021-05-04 Thread Dimitri John Ledkov
On Mon, May 3, 2021 at 6:09 AM Michael Chang via Grub-devel wrote: > > On Thu, Apr 29, 2021 at 12:36:37PM +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

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

2021-05-02 Thread Michael Chang via Grub-devel
On Thu, Apr 29, 2021 at 12:36:37PM +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] grub-install: Add backup and restore

2021-04-29 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

[PATCH] grub-install: Add backup and restore

2020-08-25 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 on_exit handle to restore the backup if any errors occur, or remove the backup if everything was successful. If on_exit is not available, the backup rem