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

2021-04-21 Thread Daniel Kiper
Hi, On Michael request I am considering this as 2.06 release material... On Mon, Dec 07, 2020 at 12:37:28PM +, 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: [PATCHv2] grub-install: Add backup and restore

2020-12-09 Thread Dimitri John Ledkov
Hi, On Wed, 9 Dec 2020 at 05:15, Michael Chang wrote: > > On Tue, Dec 08, 2020 at 05:58:40AM +, Dimitri John Ledkov wrote: > > On Tue, 8 Dec 2020, 03:17 Michael Chang, wrote: > > > > > On Mon, Dec 07, 2020 at 12:37:28PM +, Dimitri John Ledkov wrote: > > > > Refactor clean_grub_dir to

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

2020-12-08 Thread Michael Chang via Grub-devel
On Tue, Dec 08, 2020 at 05:58:40AM +, Dimitri John Ledkov wrote: > On Tue, 8 Dec 2020, 03:17 Michael Chang, wrote: > > > On Mon, Dec 07, 2020 at 12:37:28PM +, Dimitri John Ledkov wrote: > > > Refactor clean_grub_dir to create a backup of all the files, instead > > > of just irrevocably

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

2020-12-07 Thread Dimitri John Ledkov
On Tue, 8 Dec 2020, 03:17 Michael Chang, wrote: > On Mon, Dec 07, 2020 at 12:37:28PM +, 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 on_exit handle to

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

2020-12-07 Thread Michael Chang via Grub-devel
On Mon, Dec 07, 2020 at 12:37:28PM +, 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 on_exit handle to restore the backup if any errors occur, or > remove the

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

2020-12-07 Thread Colin Watson
On Mon, Dec 07, 2020 at 12:37:28PM +, 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 on_exit handle to restore the backup if any errors occur, or > remove the

[PATCHv2] grub-install: Add backup and restore

2020-12-07 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