OSDN Git Service

Merge remote-tracking branch 'origin/master' into calamares
authorAdriaan de Groot <groot@kde.org>
Tue, 16 Jun 2020 14:45:49 +0000 (16:45 +0200)
committerAdriaan de Groot <groot@kde.org>
Tue, 16 Jun 2020 14:45:49 +0000 (16:45 +0200)
Pick up some older MRs that apply to the older branch.

1  2 
src/modules/partition/core/PartitionCoreModule.cpp
src/modules/partition/core/PartitionLayout.cpp
src/modules/partition/core/PartitionLayout.h
src/modules/partition/partition.conf

@@@ -883,8 -883,8 +883,9 @@@ PartitionCoreModule::initLayout( const 
          }
  
          if ( !m_partLayout->addEntry( CalamaresUtils::getString( pentry, "name" ),
+                                       CalamaresUtils::getString( pentry, "uuid" ),
                                        CalamaresUtils::getString( pentry, "type" ),
 +                                      CalamaresUtils::getUnsignedInteger( pentry, "attributes", 0 ),
                                        CalamaresUtils::getString( pentry, "mountPoint" ),
                                        CalamaresUtils::getString( pentry, "filesystem" ),
                                        CalamaresUtils::getSubMap( pentry, "features", ok ),
@@@ -118,8 -118,8 +118,9 @@@ PartitionLayout::addEntry( const QStrin
  
  bool
  PartitionLayout::addEntry( const QString& label,
+                            const QString& uuid,
                             const QString& type,
 +                           quint64 attributes,
                             const QString& mountPoint,
                             const QString& fs,
                             const QVariantMap& features,
      }
  
      entry.partLabel = label;
+     entry.partUUID = uuid;
      entry.partType = type;
 +    entry.partAttributes = attributes;
      entry.partMountPoint = mountPoint;
      PartUtils::findFS( fs, &entry.partFileSystem );
      if ( entry.partFileSystem == FileSystem::Unknown )
@@@ -41,8 -41,8 +41,9 @@@ public
      struct PartitionEntry
      {
          QString partLabel;
+         QString partUUID;
          QString partType;
 +        quint64 partAttributes;
          QString partMountPoint;
          FileSystem::Type partFileSystem = FileSystem::Unknown;
          QVariantMap partFeatures;
@@@ -77,8 -77,8 +78,9 @@@
                     const QString& min = QString(),
                     const QString& max = QString() );
      bool addEntry( const QString& label,
+                    const QString& uuid,
                     const QString& type,
 +                   quint64 attributes,
                     const QString& mountPoint,
                     const QString& fs,
                     const QVariantMap& features,
@@@ -128,8 -127,8 +128,9 @@@ defaultFileSystemType:  "ext4
  #   - name: filesystem label
  #           and
  #           partition name (gpt only; since KPMCore 4.2.0)
+ #   - uuid: partition uuid (optional parameter; gpt only; requires KPMCore >= 4.2.0)
  #   - type: partition type (optional parameter; gpt only; requires KPMCore >= 4.2.0)
 +#   - attributes: partition attributes (optional parameter; gpt only; requires KPMCore >= 4.2.0)
  #   - filesystem: filesystem type
  #   - mountPoint: partition mount point
  #   - size: partition size in bytes (append 'K', 'M' or 'G' for KiB, MiB or GiB)