File 0002-allowing-to-set-partition-id-entry-in-U-EFI-mode.patch of Package syslinux

From 70570adac524a2ef016d3987cc3d807fe65ca74c Mon Sep 17 00:00:00 2001
From: v-fox <virtuousfox@gmail.com>
Date: Mon, 26 Oct 2015 11:31:44 +0500
Subject: [PATCH 2/2] allowing to set partition id entry in U/EFI mode

---
 utils/isohybrid.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/utils/isohybrid.c b/utils/isohybrid.c
index d6891c0..ac2d636 100644
--- a/utils/isohybrid.c
+++ b/utils/isohybrid.c
@@ -317,8 +317,8 @@ check_option(int argc, char *argv[])
             entry = strtoul(optarg, &err, 0);
             if (entry < 1 || entry > 4)
                 errx(1, "invalid entry: `%s', 1 <= entry <= 4", optarg);
-	    if (mode & MAC || mode & EFI)
-		errx(1, "setting an entry is unsupported with EFI or Mac");
+	    if (mode & MAC)
+		errx(1, "setting an entry is unsupported with Mac");
             break;
 
         case 'o':
@@ -1023,7 +1023,7 @@ main(int argc, char *argv[])
     if(mode & MAC) part_mac = 3;
 
     if(entry) {
-      if(entry != part_efi && entry != part_mac) part_data = entry;
+      if(entry != part_mac) part_data = entry;
     }
 
     srand(time(NULL) << (getppid() << getpid()));
-- 
2.6.2

openSUSE Build Service is sponsored by