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()))
|
||||
return false;
|
||||
|
||||
scan(deviceNode);
|
||||
|
||||
if (mapperName().isEmpty())
|
||||
return false;
|
||||
|
||||
scan(deviceNode);
|
||||
|
||||
if (!m_innerFs->create(report, mapperName()))
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue