2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Switch to secureboot signed grub for ubuntu

It was pulling an efi binary incompatible with secureboot before.
This commit is contained in:
Jarrod Johnson 2021-11-19 11:34:06 -05:00
parent 6e4c939cd9
commit e1c15cca8e

View File

@ -1206,7 +1206,7 @@ def gather_bootloader(outdir, rootpath='/'):
if not grubbin:
grubbin = os.path.join(rootpath, 'usr/lib64/efi/grub.efi')
if not os.path.exists(grubbin):
grubbin = os.path.join(rootpath, 'usr/lib/grub/x86_64-efi/monolithic/grubx64.efi')
grubbin = os.path.join(rootpath, 'usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed')
shutil.copyfile(grubbin, os.path.join(outdir, 'boot/efi/boot/grubx64.efi'))
shutil.copyfile(grubbin, os.path.join(outdir, 'boot/efi/boot/grub.efi'))