[partion] Set FlagBoot for some legacy BIOSes, otherwise may not boot.
This commit is contained in:
parent
7c6ff1a367
commit
af3ffa855e
@ -195,7 +195,15 @@ doAutopartition( PartitionCoreModule* core, Device* dev, Choices::AutoPartitionO
|
|||||||
}
|
}
|
||||||
PartitionInfo::setFormat( rootPartition, true );
|
PartitionInfo::setFormat( rootPartition, true );
|
||||||
PartitionInfo::setMountPoint( rootPartition, "/" );
|
PartitionInfo::setMountPoint( rootPartition, "/" );
|
||||||
|
if( isEfi )
|
||||||
|
{
|
||||||
core->createPartition( dev, rootPartition );
|
core->createPartition( dev, rootPartition );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Set FlagBoot for some legacy BIOSes, otherwise may not boot.
|
||||||
|
core->createPartition( dev, rootPartition, PartitionTable::FlagBoot );
|
||||||
|
}
|
||||||
|
|
||||||
if ( shouldCreateSwap )
|
if ( shouldCreateSwap )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user