On 27/02/21 at 20:01 +0100, Emmanuel Kasper wrote:
> Le 26/02/2021 à 22:54, Lucas Nussbaum a écrit :
> > Tentative patch:
> > https://salsa.debian.org/cloud-team/debian-vagrant-images/-/commit/b82d522f65b507767f909b2b9471c5a9ade75e05
> 
> This approach is IMHO the easier way forward.
> 
> However I think the recommended approach of grub installation is to put
> the core.img on the disk between the partition table and the first
> partition, see
> https://www.gnu.org/software/grub/manual/grub/html_node/BIOS-installation.html#BIOS-installation
> 
> and for this we should feed debconf with the disk device (/dev/vda or
> /dev/sda) instead of a partition.
> This is what the debian-installer and FAI do.
> 
> https://salsa.debian.org/cloud-team/debian-vagrant-images/-/blob/master/config_space/scripts/GRUB_PC/10-setup#L9

I fully agree, but I think that's what my code does (sub(/1$/, "", $1))
:)

Lucas

Reply via email to