[machineid] Fix entropy-file return

- If the file was created and written, it would drop out of the
   if() and return an error anyway.
This commit is contained in:
Adriaan de Groot 2020-01-30 10:08:55 +01:00
parent e56948cefa
commit c971127b17

View File

@ -127,6 +127,7 @@ createNewEntropy( int poolSize, const QString& rootMountPoint, const QString& fi
{
cWarning() << "Entropy data is" << data.length() << "bytes, rather than poolSize" << poolSize;
}
return Calamares::JobResult::ok();
}
return Calamares::JobResult::error(
QObject::tr( "File not found" ),