summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-15 18:42:42 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-20 21:18:43 -0400
commit091526ab20485492124852dcf629787f35816df8 (patch)
treef75a7b925f49f8ccac2d5249f6f194c44600f1bf /src
parent7384146530ac083efbef62b9ef5bb82c56565cd4 (diff)
gpt-auto-generator: do not show error for non-GPT disks
Diffstat (limited to 'src')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index 222d6a0da7..5c0e455338 100644
--- a/src/gpt-auto-generator/gpt-auto-generator.c
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
@@ -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;