[partition] Migrate the defaultFS type

- remove the m_defaultFSType from PartitionLayout, because it is
  set on construction -- which is too early, before the configuration
  has been read.
- make the default FS explicit in the init() calls which pass in
  a configuration; this needs support in the intermediate
  PartitionCoreModule.
This commit is contained in:
Adriaan de Groot 2020-11-02 21:35:43 +01:00
parent 42014a8201
commit 73b5a0898d
5 changed files with 44 additions and 40 deletions

View file

@ -156,7 +156,11 @@ public:
/// @brief Set the path where the bootloader will be installed
void setBootLoaderInstallPath( const QString& path );
void initLayout( const QVariantList& config = QVariantList() );
/** @brief Initialize the default layout that will be applied
*
* See PartitionLayout::init()
*/
void initLayout( FileSystem::Type defaultFsType, const QVariantList& config = QVariantList() );
void layoutApply( Device* dev, qint64 firstSector, qint64 lastSector, QString luksPassphrase );
void layoutApply( Device* dev,