summaryrefslogtreecommitdiff
path: root/vmdebootstrap/grub.py
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-09-02 21:07:35 +0100
committerNeil Williams <codehelp@debian.org>2015-09-02 21:43:01 +0100
commit5c54e70b6d13241bc096880fd39f346f95561a54 (patch)
tree500ff2edceb3240f55d3b86e54601d2f48aafb99 /vmdebootstrap/grub.py
parent31d98be0dc493620e28ad9bd24d3889499333b50 (diff)
downloadvmdebootstrap-5c54e70b6d13241bc096880fd39f346f95561a54.tar.gz
move some more functions into modules
Diffstat (limited to 'vmdebootstrap/grub.py')
-rw-r--r--vmdebootstrap/grub.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/vmdebootstrap/grub.py b/vmdebootstrap/grub.py
index 909c2d1..95b17eb 100644
--- a/vmdebootstrap/grub.py
+++ b/vmdebootstrap/grub.py
@@ -116,3 +116,8 @@ class GrubHandler(Base):
umount_wrapper(rootdir)
if not ret:
raise cliapp.AppException("Failed to install extra grub uefi")
+
+ def grub_packages(self):
+ if self.settings['grub'] and not self.settings['use-uefi']:
+ return ['grub-pc']
+ return []