[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 90f63a15bb
commit edf9ed6d2a

View File

@ -221,7 +221,15 @@ doAutopartition( PartitionCoreModule* core, Device* dev, const QString& luksPass
}
PartitionInfo::setFormat( rootPartition, true );
PartitionInfo::setMountPoint( 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 )
{