summaryrefslogtreecommitdiff
path: root/vmdebootstrap/grub.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/grub.py
parent54b1ab7ea71a857791189d7a2108c8b76cbfde2a (diff)
downloadvmdebootstrap-4076819572f4dec90050771a58a4753d20a3f68b.tar.gz
add setuptools support
Diffstat (limited to 'vmdebootstrap/grub.py')
-rw-r--r--vmdebootstrap/grub.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/vmdebootstrap/grub.py b/vmdebootstrap/grub.py
index 8d55ce1..22d7658 100644
--- a/vmdebootstrap/grub.py
+++ b/vmdebootstrap/grub.py
@@ -69,8 +69,10 @@ class GrubHandler(Base):
except cliapp.AppException as exc:
logging.warning(exc)
self.message("Failed. Is grub2-common installed? Using extlinux.")
- self.install_extlinux(rootdev, rootdir) # FIXME!
+ umount_wrapper(rootdir)
+ return False
umount_wrapper(rootdir)
+ return True
def install_grub_uefi(self, rootdir):
self.message("Configuring grub-uefi")
@@ -86,8 +88,9 @@ class GrubHandler(Base):
self.message(
"Failed to configure grub-uefi for %s" %
self.settings['arch'])
- umount_wrapper(rootdir)
- self.uefi.configure_efi() # FIXME
+ umount_wrapper(rootdir)
+
+ def install_extra_grub_uefi(self, rootdir):
extra = str(arch_table[self.settings['arch']]['extra'])
if extra:
target = arch_table[extra]['target']
@@ -99,5 +102,4 @@ class GrubHandler(Base):
logging.warning(exc)
self.message(
"Failed to configure grub-uefi for %s" % extra)
- self.uefi.configure_extra_efi() # FIXME
umount_wrapper(rootdir)