mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
gpt-auto-generator: do not show error for non-GPT disks
This commit is contained in:
parent
7384146530
commit
091526ab20
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user