From b924bd6ee80c9779d41a2bfc0ca44034101859c6 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Mon, 14 Sep 2015 18:21:16 +0100 Subject: fix missing distro lookup in uefi settings --- vmdebootstrap/uefi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vmdebootstrap') 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') -- cgit v1.2.1