[partion] Set FlagBoot for some legacy BIOSes, otherwise may not boot.

This commit is contained in:
Philip Müller 2018-11-09 00:39:52 +01:00
parent 7c6ff1a367
commit af3ffa855e

View File

@ -195,7 +195,15 @@ doAutopartition( PartitionCoreModule* core, Device* dev, Choices::AutoPartitionO
}
PartitionInfo::setFormat( rootPartition, true );
PartitionInfo::setMountPoint( rootPartition, "/" );
core->createPartition( dev, rootPartition );
if( isEfi )
{
core->createPartition( dev, rootPartition );
}
else
{
// Set FlagBoot for some legacy BIOSes, otherwise may not boot.
core->createPartition( dev, rootPartition, PartitionTable::FlagBoot );
}
if ( shouldCreateSwap )
{