Update LuksBootKeyFileJob.cpp

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

View File

@ -302,6 +302,14 @@ LuksBootKeyFileJob::exec()
return Calamares::JobResult::ok();
}
if ( hasUnencryptedSeparateBoot() && hasEncryptedRoot() )
{
// /boot partition is not encrypted, keyfile must not be used
// But only if root partition is encrypted
cDebug() << Logger::SubEntry << "/boot partition is not encrypted, skipping keyfile creation.";
return Calamares::JobResult::ok();
}
if ( s.devices.first().passphrase.isEmpty() )
{
cDebug() << Logger::SubEntry << "No root passphrase.";