chiark / gitweb /
gpt-auto-generator: do not show error for non-GPT disks
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 15 Aug 2013 22:42:42 +0000 (18:42 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 21 Aug 2013 01:18:43 +0000 (21:18 -0400)
src/gpt-auto-generator/gpt-auto-generator.c

index 222d6a0..5c0e455 100644 (file)
@@ -87,7 +87,8 @@ static int verify_gpt_partition(dev_t dev, sd_id128_t *type, unsigned *nr, char
         errno = 0;
         r = blkid_probe_lookup_value(b, "PART_ENTRY_SCHEME", &v, NULL);
         if (r != 0)
-                return errno ? -errno : -EIO;
+                /* return 0 if we're not on GPT */
+                return errno ? -errno : 0;
 
         if (strcmp(v, "gpt") != 0)
                 return 0;