Fix a bug when creating a luks encrypted partition.

This commit is contained in:
Andrius Štikonas 2016-09-06 00:25:59 +01:00
parent 4b9f34b109
commit b95fe45d66
1 changed files with 2 additions and 2 deletions

View File

@ -139,11 +139,11 @@ bool luks::create(Report& report, const QString& deviceNode)
if (!( openCmd.start(-1) && openCmd.write(m_passphrase.toUtf8() + '\n') == m_passphrase.toUtf8().length() + 1 && openCmd.waitFor()))
return false;
scan(deviceNode);
if (mapperName().isEmpty())
return false;
scan(deviceNode);
if (!m_innerFs->create(report, mapperName()))
return false;