diff options
author | Neil Williams <codehelp@debian.org> | 2015-05-02 20:33:27 +0100 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-05-02 20:33:27 +0100 |
commit | 94d2cded1ec9cb98a2f1f9b0fe34d64fec1cc1f9 (patch) | |
tree | 976990b8c25a80860fca6b6c08c2637eb7ac04c9 /vmdebootstrap | |
parent | 3c3fc0a3b29b3b3a3106ddad048f2f4e73a9413c (diff) | |
download | vmdebootstrap-94d2cded1ec9cb98a2f1f9b0fe34d64fec1cc1f9.tar.gz |
Exclude syslinux support when using grub
Fall back to syslinux support if grub2 fails.
Diffstat (limited to 'vmdebootstrap')
-rwxr-xr-x | vmdebootstrap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vmdebootstrap b/vmdebootstrap index 8d90dd4..1b863e8 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -629,10 +629,10 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth self.runcmd(['chroot', rootdir, 'grub-install', install_dev]) except cliapp.AppException: self.message("Failed. Is grub2-common installed? Using extlinux.") + self.install_extlinux(rootdev, rootdir) self.runcmd(['umount', os.path.join(rootdir, 'sys')]) self.runcmd(['umount', os.path.join(rootdir, 'proc')]) self.runcmd(['umount', os.path.join(rootdir, 'dev')]) - self.install_extlinux(rootdev, rootdir) def install_extlinux(self, rootdev, rootdir): if not os.path.exists("/usr/bin/extlinux"): |