[partion] Set FlagBoot for some legacy BIOSes, otherwise may not boot.
This commit is contained in:
parent
90f63a15bb
commit
edf9ed6d2a
@ -221,7 +221,15 @@ doAutopartition( PartitionCoreModule* core, Device* dev, const QString& luksPass
|
|||||||
}
|
}
|
||||||
PartitionInfo::setFormat( rootPartition, true );
|
PartitionInfo::setFormat( rootPartition, true );
|
||||||
PartitionInfo::setMountPoint( rootPartition, "/" );
|
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 )
|
if ( shouldCreateSwap )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user