]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Fix lookup of efi_arch_table for non-uefi arches
authorNeil Williams <codehelp@debian.org>
Mon, 31 Aug 2015 17:22:22 +0000 (18:22 +0100)
committerNeil Williams <codehelp@debian.org>
Mon, 31 Aug 2015 17:22:22 +0000 (18:22 +0100)
vmdebootstrap

index e44fe1e5a5ca2f10434c786fa89bf8846b1ed34a..a85351d2ed7e8377f306c668ff086b55055cd31b 100755 (executable)
@@ -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'])