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

2023-11-22 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

Re: [PATCH v2] grub-install: Delay copying files to grubdir after install_device was validated.

2023-11-22 Thread Julian Andres Klode
On Wed, Nov 22, 2023 at 10:06:27AM +, 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

[PATCH v2] grub-install: Delay copying files to grubdir after install_device was validated.

2023-11-22 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