diff options
author | Daniel Mack <github@zonque.org> | 2015-08-11 13:39:27 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-11 13:39:27 +0200 |
commit | 3f1818cf70ac34cf93f1f033b4f1bbb7a89b3dff (patch) | |
tree | 2f0aa8ecf27e67723d7cccaff352d19db01c031f /src/udev/udev-builtin-blkid.c | |
parent | aae68db9b441963b0d1b8519e0aee8e2fc05e20c (diff) | |
parent | 0238d4c660e732dd03ba0cdb54a29ec5870ee849 (diff) |
Merge pull request #929 from kaysievers/gpt
gpt-auto-generator: apply partition-type flags only to specific partiā¦
Diffstat (limited to 'src/udev/udev-builtin-blkid.c')
-rw-r--r-- | src/udev/udev-builtin-blkid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c index 1dad4476f3..b8066ea6e9 100644 --- a/src/udev/udev-builtin-blkid.c +++ b/src/udev/udev-builtin-blkid.c @@ -143,6 +143,11 @@ static int find_gpt_root(struct udev_device *dev, blkid_probe pr, bool test) { if (sd_id128_equal(type, GPT_ESP)) { sd_id128_t id, esp; + unsigned long long flags; + + flags = blkid_partition_get_flags(pp); + if (flags & GPT_FLAG_NO_AUTO) + continue; /* We found an ESP, let's see if it matches * the ESP we booted from. */ |