From 1f4e2f86f39f16c3fe12706b9ac30a9554f44c09 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Mon, 31 Aug 2015 18:22:22 +0100 Subject: [PATCH] Fix lookup of efi_arch_table for non-uefi arches --- vmdebootstrap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']) -- 2.39.5