]> git.siccegge.de Git - forks/vmdebootstrap.git/blobdiff - vmdebootstrap
Ensure wheezy amd64 warning is only used with uefi
[forks/vmdebootstrap.git] / vmdebootstrap
index a85351d2ed7e8377f306c668ff086b55055cd31b..138d8a61bc26b39fb533ab241daa56fbe44f38b8 100755 (executable)
@@ -30,7 +30,7 @@ import time
 from distro_info import DebianDistroInfo, UbuntuDistroInfo
 
 
-__version__ = '0.9'
+__version__ = '0.10'
 
 # pylint: disable=invalid-name,line-too-long,missing-docstring,too-many-branches
 
@@ -263,7 +263,7 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
 
         # wheezy (which became oldstable on 04/25/2015) only had amd64 uefi
         if self.was_oldstable(datetime.date(2015, 4, 26)):
-            if self.settings['arch'] != 'amd64':
+            if self.settings['use-uefi'] and self.settings['arch'] != 'amd64':
                 raise cliapp.AppException(
                     'Only amd64 supports UEFI in Wheezy')