summaryrefslogtreecommitdiff
path: root/vmdebootstrap/grub.py
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-08-16 18:24:58 +0200
committerNeil Williams <codehelp@debian.org>2015-08-16 18:24:58 +0200
commit54212e6812319e288a9ecd1a4d032b23ea9ae4ea (patch)
treea980be74cdf856de61523df193c92decb569ae88 /vmdebootstrap/grub.py
parent34252150c3ca24e1dc88712406f73f0a78d9ea55 (diff)
downloadvmdebootstrap-54212e6812319e288a9ecd1a4d032b23ea9ae4ea.tar.gz
fix mount operations around uefi
Diffstat (limited to 'vmdebootstrap/grub.py')
-rw-r--r--vmdebootstrap/grub.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/vmdebootstrap/grub.py b/vmdebootstrap/grub.py
index e511462..e348a53 100644
--- a/vmdebootstrap/grub.py
+++ b/vmdebootstrap/grub.py
@@ -93,6 +93,7 @@ class GrubHandler(Base):
def install_extra_grub_uefi(self, rootdir):
extra = str(arch_table[self.settings['arch']]['extra'])
if extra:
+ mount_wrapper(rootdir)
target = arch_table[extra]['target']
grub_opts = "--target=%s" % target
try:
@@ -102,4 +103,4 @@ class GrubHandler(Base):
logging.warning(exc)
self.message(
"Failed to configure grub-uefi for %s" % extra)
- umount_wrapper(rootdir)
+ umount_wrapper(rootdir)