summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-08-31 18:22:22 +0100
committerNeil Williams <codehelp@debian.org>2015-08-31 18:22:22 +0100
commit1f4e2f86f39f16c3fe12706b9ac30a9554f44c09 (patch)
tree39b24371d33c6d4c0822c85c25bdec214a50721e
parent8063a5bcaf28421c33881aab5af3df987303bf1a (diff)
downloadvmdebootstrap-1f4e2f86f39f16c3fe12706b9ac30a9554f44c09.tar.gz
Fix lookup of efi_arch_table for non-uefi arches
-rwxr-xr-xvmdebootstrap3
1 files changed, 2 insertions, 1 deletions
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'])