Fix a bug when creating a luks encrypted partition.
This commit is contained in:
parent
4b9f34b109
commit
b95fe45d66
|
@ -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()))
|
if (!( openCmd.start(-1) && openCmd.write(m_passphrase.toUtf8() + '\n') == m_passphrase.toUtf8().length() + 1 && openCmd.waitFor()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
scan(deviceNode);
|
||||||
|
|
||||||
if (mapperName().isEmpty())
|
if (mapperName().isEmpty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
scan(deviceNode);
|
|
||||||
|
|
||||||
if (!m_innerFs->create(report, mapperName()))
|
if (!m_innerFs->create(report, mapperName()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue