Merge pull request #1561 from gportay/partition-set-swap-partition-name
[partition] Allow a configurable swap Partition name
This commit is contained in:
commit
10991346b7
@ -196,6 +196,10 @@ doAutopartition( PartitionCoreModule* core, Device* dev, Choices::AutoPartitionO
|
|||||||
KPM_PARTITION_FLAG( None ) );
|
KPM_PARTITION_FLAG( None ) );
|
||||||
}
|
}
|
||||||
PartitionInfo::setFormat( swapPartition, true );
|
PartitionInfo::setFormat( swapPartition, true );
|
||||||
|
if ( gs->contains( "swapPartitionName" ))
|
||||||
|
{
|
||||||
|
swapPartition->setLabel( gs->value( "swapPartitionName" ).toString() );
|
||||||
|
}
|
||||||
core->createPartition( dev, swapPartition );
|
core->createPartition( dev, swapPartition );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -543,6 +543,12 @@ PartitionViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|||||||
gs->insert( "efiSystemPartitionName", CalamaresUtils::getString( configurationMap, "efiSystemPartitionName" ) );
|
gs->insert( "efiSystemPartitionName", CalamaresUtils::getString( configurationMap, "efiSystemPartitionName" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Read and parse key swapPartitionName
|
||||||
|
if ( configurationMap.contains( "swapPartitionName" ) )
|
||||||
|
{
|
||||||
|
gs->insert( "swapPartitionName", CalamaresUtils::getString( configurationMap, "swapPartitionName" ) );
|
||||||
|
}
|
||||||
|
|
||||||
// OTHER SETTINGS
|
// OTHER SETTINGS
|
||||||
//
|
//
|
||||||
gs->insert( "drawNestedPartitions", CalamaresUtils::getBool( configurationMap, "drawNestedPartitions", false ) );
|
gs->insert( "drawNestedPartitions", CalamaresUtils::getBool( configurationMap, "drawNestedPartitions", false ) );
|
||||||
|
@ -12,7 +12,8 @@ efiSystemPartition: "/boot/efi"
|
|||||||
# If nothing is specified, the default size of 300MiB will be used.
|
# If nothing is specified, the default size of 300MiB will be used.
|
||||||
# efiSystemPartitionSize: 300M
|
# efiSystemPartitionSize: 300M
|
||||||
|
|
||||||
# This optional setting specifies the name of the EFI system partition.
|
# This optional setting specifies the name of the EFI system partition (see
|
||||||
|
# PARTLABEL; gpt only; requires KPMCore >= 4.2.0).
|
||||||
# If nothing is specified, the partition name is left unset.
|
# If nothing is specified, the partition name is left unset.
|
||||||
# efiSystemPartitionName: EFI
|
# efiSystemPartitionName: EFI
|
||||||
|
|
||||||
@ -48,6 +49,11 @@ userSwapChoices:
|
|||||||
# - reuse # Re-use existing swap, but don't create any (unsupported right now)
|
# - reuse # Re-use existing swap, but don't create any (unsupported right now)
|
||||||
- file # To swap file instead of partition
|
- file # To swap file instead of partition
|
||||||
|
|
||||||
|
# This optional setting specifies the name of the swap partition (see
|
||||||
|
# PARTLABEL; gpt only; requires KPMCore >= 4.2.0).
|
||||||
|
# If nothing is specified, the partition name is left unset.
|
||||||
|
# swapPartitionName: swap
|
||||||
|
|
||||||
# LEGACY SETTINGS (these will generate a warning)
|
# LEGACY SETTINGS (these will generate a warning)
|
||||||
# ensureSuspendToDisk: true
|
# ensureSuspendToDisk: true
|
||||||
# neverCreateSwap: false
|
# neverCreateSwap: false
|
||||||
|
Loading…
Reference in New Issue
Block a user