summaryrefslogtreecommitdiff
path: root/vmdebootstrap
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-09-14 18:21:16 +0100
committerNeil Williams <codehelp@debian.org>2015-09-14 18:21:16 +0100
commitb924bd6ee80c9779d41a2bfc0ca44034101859c6 (patch)
tree2c1bb69611e008b0e8162876e8157298b546cc1a /vmdebootstrap
parent657d1c56a2ca55986ac561c9d01b9710d2e302ff (diff)
downloadvmdebootstrap-b924bd6ee80c9779d41a2bfc0ca44034101859c6.tar.gz
fix missing distro lookup in uefi settings
Diffstat (limited to 'vmdebootstrap')
-rw-r--r--vmdebootstrap/uefi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmdebootstrap/uefi.py b/vmdebootstrap/uefi.py
index 147405a..bf04ae8 100644
--- a/vmdebootstrap/uefi.py
+++ b/vmdebootstrap/uefi.py
@@ -44,7 +44,7 @@ class Uefi(Base):
super(Uefi, self).__init__()
self.bootdir = None
- def check_settings(self):
+ def check_settings(self, oldstable=False):
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')
@@ -67,7 +67,7 @@ class Uefi(Base):
'UEFI without Grub is not supported.')
# wheezy (which became oldstable on 04/25/2015) only had amd64 uefi
- if distro.was_oldstable(datetime.date(2015, 4, 26)):
+ if oldstable:
if self.settings['arch'] != 'amd64' and self.settings['use-uefi']:
raise cliapp.AppException(
'Only amd64 supports UEFI in Wheezy')