Re: [PATCH v4] grub-install: Delay copying files to {grubdir, platdir} after install_device was validated.

2023-11-29 Thread Daniel Kiper
On Fri, Nov 24, 2023 at 08:32:57AM +, Mate Kukri wrote: > Previously grub-install copied modules to grubdir before doing any validation > on > the install_device. > > When grub-install was called with an invalid install_device, modules > were already copied to /boot before it found out and was

[PATCH v4] grub-install: Delay copying files to {grubdir, platdir} after install_device was validated.

2023-11-24 Thread Mate Kukri
Previously grub-install copied modules to grubdir before doing any validation on the install_device. When grub-install was called with an invalid install_device, modules were already copied to /boot before it found out and was forced to rely on atexit rollback. This patch delays copying the modul