mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
Read ensureSuspendToDisk from partition.conf.
This commit is contained in:
parent
92736c3486
commit
35f4db9316
2 changed files with 11 additions and 0 deletions
|
@ -435,6 +435,16 @@ PartitionViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|||
{
|
||||
gs->insert( "efiSystemPartition", QStringLiteral( "/boot/efi" ) );
|
||||
}
|
||||
|
||||
if ( configurationMap.contains( "ensureSuspendToDisk" ) &&
|
||||
configurationMap.value( "ensureSuspendToDisk" ).type() == QVariant::Bool )
|
||||
{
|
||||
gs->insert( "ensureSuspendToDisk", configurationMap.value( "ensureSuspendToDisk" ).toBool() );
|
||||
}
|
||||
else
|
||||
{
|
||||
gs->insert( "ensureSuspendToDisk", true );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
# distributions (Fedora, Debian, Manjaro, etc.) use /boot/efi, others (KaOS,
|
||||
# etc.) use just /boot.
|
||||
efiSystemPartition: "/boot/efi"
|
||||
ensureSuspendToDisk: true #make sure an autogenerated swap partition is big enough for hibernation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue