From 105f9c48617b390743aefe2e612d1761a420a7fc Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 11 Mar 2019 17:50:27 -0400 Subject: [PATCH] [partition] Set firmware type - This got lost in 3.2.4. - Thanks Gabriel for hunting it down; patch applied with some changes. --- src/modules/partition/gui/PartitionViewStep.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/partition/gui/PartitionViewStep.cpp b/src/modules/partition/gui/PartitionViewStep.cpp index ffeb8c055..7053740c9 100644 --- a/src/modules/partition/gui/PartitionViewStep.cpp +++ b/src/modules/partition/gui/PartitionViewStep.cpp @@ -489,6 +489,11 @@ PartitionViewStep::setConfigurationMap( const QVariantMap& configurationMap ) efiSP = QStringLiteral( "/boot/efi" ); gs->insert( "efiSystemPartition", efiSP ); + // Set up firmwareType global storage entry. This is used, e.g. by the bootloader module. + QString firmwareType( PartUtils::isEfiSystem() ? QStringLiteral( "efi" ) : QStringLiteral( "bios" ) ); + cDebug() << "Setting firmwareType to" << firmwareType; + gs->insert( "firmwareType", firmwareType ); + // Read and parse key efiSystemPartitionSize if ( configurationMap.contains( "efiSystemPartitionSize" ) ) {