]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/dissect-image.c
dissect: don't honour NOAUTO flags when looking for ESP (#5224)
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Feb 2017 03:10:48 +0000 (04:10 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 8 Feb 2017 03:10:48 +0000 (22:10 -0500)
commita48dd3475bb0d5f3a88922cdce09ee8c63b6c0b8
treee349895a2933609a09f13aa0b3909101bd45c6b8
parentcec2a20dab1b3ac33231904f857ee4610e35b805
dissect: don't honour NOAUTO flags when looking for ESP (#5224)

The flag is originally defined for "basic data partitions", but not for the
ESP. We reuse it for the various partitions defined by the Discoverable
Partitions Spec, but it isn't defined for the ESP, hence don't check for
it. Instead, do check for GPT_FLAG_NO_BLOCK_IO_PROTOCOL, as that flag
actually is defined for all partition types, and recommended to use by
the UEFI spec.

Fixes: #5218
src/shared/dissect-image.c
src/shared/gpt.h