mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Make sure the Extended partition role doesn't carry over on replace.
This commit is contained in:
parent
beb338ad29
commit
eb485f55c0
1 changed files with 5 additions and 1 deletions
|
@ -201,10 +201,14 @@ void
|
||||||
doReplacePartition( PartitionCoreModule* core, Device* dev, Partition* partition )
|
doReplacePartition( PartitionCoreModule* core, Device* dev, Partition* partition )
|
||||||
{
|
{
|
||||||
cDebug() << "doReplacePartition for device" << partition->partitionPath();
|
cDebug() << "doReplacePartition for device" << partition->partitionPath();
|
||||||
|
PartitionRole newRoles( partition->roles() );
|
||||||
|
if ( partition->roles().has( PartitionRole::Extended ) )
|
||||||
|
newRoles = PartitionRole( PartitionRole::Primary );
|
||||||
|
|
||||||
Partition* newPartition = KPMHelpers::createNewPartition(
|
Partition* newPartition = KPMHelpers::createNewPartition(
|
||||||
partition->parent(),
|
partition->parent(),
|
||||||
*dev,
|
*dev,
|
||||||
partition->roles(),
|
newRoles,
|
||||||
FileSystem::Ext4,
|
FileSystem::Ext4,
|
||||||
partition->firstSector(),
|
partition->firstSector(),
|
||||||
partition->lastSector() );
|
partition->lastSector() );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue