Update LuksBootKeyFileJob.cpp
This commit is contained in:
parent
f0fb39edd8
commit
ab8159a77f
@ -294,22 +294,13 @@ 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
|
||||
// /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();
|
||||
}
|
||||
|
||||
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.";
|
||||
|
Loading…
Reference in New Issue
Block a user