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'])