def __setup_secure_boot_efi_image(self, lookup_path): """ use prebuilt and signed efi images provided by the distribution """ secure_efi_lookup_path = self.root_dir + '/usr/lib64/efi/' if lookup_path: secure_efi_lookup_path = lookup_path shim_image = secure_efi_lookup_path + Defaults.get_shim_name() if not os.path.exists(shim_image): raise KiwiBootLoaderGrubSecureBootError( 'Microsoft signed shim loader %s not found' % shim_image) grub_image = secure_efi_lookup_path + Defaults.get_signed_grub_name() if not os.path.exists(grub_image): raise KiwiBootLoaderGrubSecureBootError( 'Signed grub2 efi loader %s not found' % grub_image) Command.run(['cp', shim_image, self.__get_efi_image_name()]) Command.run(['cp', grub_image, self.efi_boot_path])
def __setup_secure_boot_efi_image(self, lookup_path): """ use prebuilt and signed efi images provided by the distribution """ secure_efi_lookup_path = self.root_dir + '/usr/lib64/efi/' if lookup_path: secure_efi_lookup_path = lookup_path shim_image = secure_efi_lookup_path + Defaults.get_shim_name() if not os.path.exists(shim_image): raise KiwiBootLoaderGrubSecureBootError( 'Microsoft signed shim loader %s not found' % shim_image ) grub_image = secure_efi_lookup_path + Defaults.get_signed_grub_name() if not os.path.exists(grub_image): raise KiwiBootLoaderGrubSecureBootError( 'Signed grub2 efi loader %s not found' % grub_image ) Command.run( ['cp', shim_image, self.__get_efi_image_name()] ) Command.run( ['cp', grub_image, self.efi_boot_path] )