[luksbootkeyfile] Merge pull request #1888 from dalto8/trailingslash
Ensure that a trailing slash doesn't cause issues with an unencrypted /boot
This commit is contained in:
commit
240c89c585
@ -17,6 +17,8 @@
|
||||
#include "GlobalStorage.h"
|
||||
#include "JobQueue.h"
|
||||
|
||||
#include <QDir>
|
||||
|
||||
LuksBootKeyFileJob::LuksBootKeyFileJob( QObject* parent )
|
||||
: Calamares::CppJob( parent )
|
||||
{
|
||||
@ -162,7 +164,7 @@ hasUnencryptedSeparateBoot()
|
||||
{
|
||||
QVariantMap partitionMap = partition.toMap();
|
||||
QString mountPoint = partitionMap.value( QStringLiteral( "mountPoint" ) ).toString();
|
||||
if ( mountPoint == QStringLiteral( "/boot" ) )
|
||||
if ( QDir::cleanPath( mountPoint ) == QStringLiteral( "/boot" ) )
|
||||
{
|
||||
return !partitionMap.contains( QStringLiteral( "luksMapperName" ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user