]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Exclude syslinux support when using grub
authorNeil Williams <codehelp@debian.org>
Sat, 2 May 2015 19:33:27 +0000 (20:33 +0100)
committerNeil Williams <codehelp@debian.org>
Sat, 2 May 2015 19:33:27 +0000 (20:33 +0100)
Fall back to syslinux support if grub2 fails.

vmdebootstrap

index 8d90dd4f58166a50f6c7ddc74b126ec896ae7ebd..1b863e8ec78e3c8b36185cd8c2090c291c5b8025 100755 (executable)
@@ -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"):