From: Neil Williams Date: Mon, 31 Aug 2015 17:22:22 +0000 (+0100) Subject: Fix lookup of efi_arch_table for non-uefi arches X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=1f4e2f86f39f16c3fe12706b9ac30a9554f44c09;p=forks%2Fvmdebootstrap.git Fix lookup of efi_arch_table for non-uefi arches --- diff --git a/vmdebootstrap b/vmdebootstrap index e44fe1e..a85351d 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -243,7 +243,8 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth if not self.settings['use-uefi'] and self.settings['esp-size'] != 5242880: raise cliapp.AppException( 'You must specify use-uefi for esp-size to have effect') - if self.efi_arch_table[self.settings['arch']]['exclusive'] and\ + if self.settings['arch'] in self.efi_arch_table and\ + self.efi_arch_table[self.settings['arch']]['exclusive'] and\ not self.settings['use-uefi']: raise cliapp.AppException( 'Only UEFI is supported on %s' % self.settings['arch'])