summaryrefslogtreecommitdiff
path: root/vmdebootstrap/uefi.py
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-08-15 17:01:37 +0200
committerNeil Williams <codehelp@debian.org>2015-08-16 14:28:53 +0200
commit4076819572f4dec90050771a58a4753d20a3f68b (patch)
tree633060d5b03ef7f323368c0dc345c9334b04f9fd /vmdebootstrap/uefi.py
parent54b1ab7ea71a857791189d7a2108c8b76cbfde2a (diff)
downloadvmdebootstrap-4076819572f4dec90050771a58a4753d20a3f68b.tar.gz
add setuptools support
Diffstat (limited to 'vmdebootstrap/uefi.py')
-rw-r--r--vmdebootstrap/uefi.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/vmdebootstrap/uefi.py b/vmdebootstrap/uefi.py
index 82bf1eb..1acae14 100644
--- a/vmdebootstrap/uefi.py
+++ b/vmdebootstrap/uefi.py
@@ -24,7 +24,12 @@
import os
import cliapp
import logging
-from vmdebootstrap.base import Base, runcmd
+from vmdebootstrap.base import (
+ Base,
+ runcmd,
+ mount_wrapper,
+ umount_wrapper,
+)
# pylint: disable=missing-docstring
@@ -106,18 +111,22 @@ class Uefi(Base):
so needs to be after grub and kernel already installed.
"""
self.message('Configuring EFI')
+ mount_wrapper()
efi_removable = str(arch_table[self.settings['arch']]['removable'])
efi_install = str(arch_table[self.settings['arch']]['install'])
self.message('Installing UEFI support binary')
self.copy_efi_binary(efi_removable, efi_install)
+ umount_wrapper()
def configure_extra_efi(self):
extra = str(arch_table[self.settings['arch']]['extra'])
if extra:
+ mount_wrapper()
efi_removable = str(arch_table[extra]['removable'])
efi_install = str(arch_table[extra]['install'])
self.message('Copying UEFI support binary for %s' % extra)
self.copy_efi_binary(efi_removable, efi_install)
+ umount_wrapper()
def partition_esp(self):
espsize = self.settings['esp-size'] / (1024 * 1024)