diff options
author | Neil Williams <codehelp@debian.org> | 2015-08-18 13:11:58 +0200 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-08-31 18:00:26 +0100 |
commit | aa0972e2c62feff98273c6a1575e148817b2fe0e (patch) | |
tree | 71a4cb25a80c57438988229ee326e9baa0139196 /vmdebootstrap/uefi.py | |
parent | bc7ef0f9a3df88424ab594fe13a4322b408f6718 (diff) | |
download | vmdebootstrap-aa0972e2c62feff98273c6a1575e148817b2fe0e.tar.gz |
Add examples for UEFI hook.
Document task package usage in the README
Diffstat (limited to 'vmdebootstrap/uefi.py')
-rw-r--r-- | vmdebootstrap/uefi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vmdebootstrap/uefi.py b/vmdebootstrap/uefi.py index 2a8bc2a..7f77f9f 100644 --- a/vmdebootstrap/uefi.py +++ b/vmdebootstrap/uefi.py @@ -105,6 +105,8 @@ class Uefi(Base): umount_wrapper(rootdir) def partition_esp(self): + if not self.settings['use-uefi']: + return espsize = self.settings['esp-size'] / (1024 * 1024) self.message("Using ESP size: %smib %s bytes" % (espsize, self.settings['esp-size'])) runcmd(['parted', '-s', self.settings['image'], |