How to handle hybrid (PC-BIOS + EFI) cloud images

Bastian Blank waldi at debian.org
Wed Sep 12 13:38:45 BST 2018


Hi

On Thu, Sep 06, 2018 at 08:14:07PM +0200, Bastian Blank wrote:
> On Thu, Sep 06, 2018 at 08:46:57AM +0200, Bastian Blank wrote:
> > In the context of cloud images there are some additional requirements:
> > - We may not have EFI nvram, so grub-install call needs at least
> >   --no-nvram.
> > - The shim needs to be installed as well, when we have some usable.
> > - Boot bootloaders variants should always be installed on the disk with
> >   the EFI partition on it during upgrades, without question.
> 
> My plan for now is to introduce another package with similar use then
> grub-pc or grub-efi-amd64.  It will depend on the correct *-bin
> packages, register a trigger on the grub binaries and handle all
> bootloader installation without questions if the setup is what it thinks
> is correct.

I implemented a prototype.

grub-cloud source package:
https://salsa.debian.org/cloud-team/grub-cloud, branch "initial"

Resulting image after hard-coding the binary package:
https://salsa.debian.org/waldi/debian-cloud-images/-/jobs/44307/artifacts/file/debian-sid-dev-nocloud-amd64-efi.raw.tar.xz

Regards,
Bastian

-- 
The idea of male and female are universal constants.
		-- Kirk, "Metamorphosis", stardate 3219.8



More information about the Pkg-grub-devel mailing list