Skip to content
Snippets Groups Projects
Commit 35f4db93 authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Read ensureSuspendToDisk from partition.conf.

parent 92736c34
No related branches found
No related tags found
No related merge requests found
...@@ -435,6 +435,16 @@ PartitionViewStep::setConfigurationMap( const QVariantMap& configurationMap ) ...@@ -435,6 +435,16 @@ PartitionViewStep::setConfigurationMap( const QVariantMap& configurationMap )
{ {
gs->insert( "efiSystemPartition", QStringLiteral( "/boot/efi" ) ); 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 @@ ...@@ -2,3 +2,4 @@
# distributions (Fedora, Debian, Manjaro, etc.) use /boot/efi, others (KaOS, # distributions (Fedora, Debian, Manjaro, etc.) use /boot/efi, others (KaOS,
# etc.) use just /boot. # etc.) use just /boot.
efiSystemPartition: "/boot/efi" efiSystemPartition: "/boot/efi"
ensureSuspendToDisk: true #make sure an autogenerated swap partition is big enough for hibernation
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment