Listing newly created encrypted LVM PVs in Create Volume Group dialog.

This commit is contained in:
Caio Carvalho 2018-05-07 20:21:14 -03:00
parent d9b4ec0ce0
commit 7d5d1f8f8a
1 changed files with 10 additions and 2 deletions

View File

@ -92,8 +92,16 @@ void CreateVolumeGroupDialog::setupDialog()
continue;
// Including new LVM PVs (that are currently in OperationStack and that aren't at other VG creation)
if (p->state() == Partition::State::New && p->fileSystem().type() == FileSystem::Type::Lvm2_PV)
dialogWidget().listPV().addPartition(*p, false);
if (p->state() == Partition::State::New) {
if (p->fileSystem().type() == FileSystem::Type::Lvm2_PV)
dialogWidget().listPV().addPartition(*p, false);
else if (p->fileSystem().type() == FileSystem::Type::Luks || p->fileSystem().type() == FileSystem::Type::Luks2) {
FileSystem *fs = static_cast<const FS::luks *>(&p->fileSystem())->innerFS();
if (fs->type() == FileSystem::Type::Lvm2_PV)
dialogWidget().listPV().addPartition(*p, false);
}
}
}
}
}