[partition] Handle partition flag FlagEsp post KPMCore 3.3.0

This commit is contained in:
Adriaan de Groot 2019-03-20 16:37:50 +01:00
parent 2a2795c54c
commit 68f29ebf20
3 changed files with 4 additions and 2 deletions

View file

@ -407,7 +407,7 @@ isEfiBootable( const Partition* candidate )
auto flags = PartitionInfo::flags( candidate );
/* If bit 17 is set, old-style Esp flag, it's OK */
if ( flags.testFlag( PartitionTable::FlagEsp ) )
if ( flags.testFlag( KPM_PARTITION_FLAG_ESP ) )
return true;
/* Otherwise, if it's a GPT table, Boot (bit 0) is the same as Esp */