Update LuksBootKeyFileJob.cpp

This commit is contained in:
Brian Morison 2023-08-20 13:28:06 -06:00 committed by GitHub
parent f0fb39edd8
commit ab8159a77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,18 +294,9 @@ LuksBootKeyFileJob::exec()
return Calamares::JobResult::ok();
}
if ( hasUnencryptedSeparateBoot() && !hasEncryptedRoot() )
if ( hasUnencryptedSeparateBoot() )
{
// /boot partition is not encrypted, keyfile must not be used
// But only if root partition is not encrypted
cDebug() << Logger::SubEntry << "/boot partition is not encrypted, skipping keyfile creation.";
return Calamares::JobResult::ok();
}
if ( hasUnencryptedSeparateBoot() && hasEncryptedRoot() )
{
// /boot partition is not encrypted, keyfile must not be used
// But only if root partition is encrypted
// /boot partition is not encrypted, keyfile must not be used.
cDebug() << Logger::SubEntry << "/boot partition is not encrypted, skipping keyfile creation.";
return Calamares::JobResult::ok();
}