[partition] The VG jobs also use KPMCore
- Give them a manager just like other KPMCore-based jobs, so that the privileged helper can be shut off on time.
This commit is contained in:
parent
042cef0945
commit
9c85537659
@ -20,11 +20,12 @@
|
||||
#define CREATEVOLUMEGROUPJOB_H
|
||||
|
||||
#include "Job.h"
|
||||
|
||||
#include <kpmcore/core/partition.h>
|
||||
#include "partition/KPMManager.h"
|
||||
|
||||
#include <QVector>
|
||||
|
||||
class Partition;
|
||||
|
||||
class CreateVolumeGroupJob : public Calamares::Job
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -40,6 +41,7 @@ public:
|
||||
void undoPreview();
|
||||
|
||||
private:
|
||||
CalamaresUtils::Partition::KPMManager m_kpmcore;
|
||||
QString m_vgName;
|
||||
QVector< const Partition* > m_pvList;
|
||||
qint32 m_peSize;
|
||||
|
@ -20,6 +20,7 @@
|
||||
#define DEACTIVATEVOLUMEGROUPJOB_H
|
||||
|
||||
#include "Job.h"
|
||||
#include "partition/KPMManager.h"
|
||||
|
||||
class LvmDevice;
|
||||
|
||||
@ -35,6 +36,7 @@ public:
|
||||
Calamares::JobResult exec() override;
|
||||
|
||||
private:
|
||||
CalamaresUtils::Partition::KPMManager m_kpmcore;
|
||||
LvmDevice* m_device;
|
||||
};
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
#define REMOVEVOLUMEGROUPJOB_H
|
||||
|
||||
#include "Job.h"
|
||||
#include "partition/KPMManager.h"
|
||||
|
||||
class LvmDevice;
|
||||
|
||||
@ -35,6 +36,7 @@ public:
|
||||
Calamares::JobResult exec() override;
|
||||
|
||||
private:
|
||||
CalamaresUtils::Partition::KPMManager m_kpmcore;
|
||||
LvmDevice* m_device;
|
||||
};
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
#define RESIZEVOLUMEGROUPJOB_H
|
||||
|
||||
#include "Job.h"
|
||||
#include "partition/KPMManager.h"
|
||||
|
||||
#include <QVector>
|
||||
|
||||
@ -42,6 +43,7 @@ private:
|
||||
QString targetPartitions() const;
|
||||
|
||||
private:
|
||||
CalamaresUtils::Partition::KPMManager m_kpmcore;
|
||||
LvmDevice* m_device;
|
||||
QVector< const Partition* > m_partitionList;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user