Support usage of grml2usb on EFI systems
authorMichael Prokop <mika@grml.org>
Wed, 25 Feb 2015 13:41:32 +0000 (14:41 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 25 Feb 2015 14:57:19 +0000 (15:57 +0100)
Closes: #768906

debian/control
grml2usb

index 3b11cd7..c91f590 100644 (file)
@@ -22,7 +22,7 @@ Depends: mtools,
          python-parted,
          realpath,
          rsync,
-         syslinux | grub-pc,
+         syslinux | grub-pc | grub-efi-amd64,
          ${misc:Depends},
          ${shlibs:Depends}
 Recommends: syslinux,
index e608ac1..072f1b3 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -493,7 +493,8 @@ def install_grub(device):
             for opt in ["", "--force"]:
                 logging.debug("grub-install --recheck %s --no-floppy --root-directory=%s %s",
                               opt, device_mountpoint, grub_device)
-                proc = subprocess.Popen([GRUB_INSTALL, "--recheck", opt, "--no-floppy",
+                proc = subprocess.Popen([GRUB_INSTALL, "--recheck", opt,
+                                         "--no-floppy", "--target=i386-pc",
                                          "--root-directory=%s" % device_mountpoint, grub_device],
                                         stdout=file(os.devnull, "r+"))
                 proc.wait()