diff --git a/src/libcalamares/partition/Mount.cpp b/src/libcalamares/partition/Mount.cpp index a0cbf3a4a..c22ba942b 100644 --- a/src/libcalamares/partition/Mount.cpp +++ b/src/libcalamares/partition/Mount.cpp @@ -144,9 +144,9 @@ MtabInfo::fromMtabFilteredByPrefix( const QString& mountPrefix, const QString& m } QStringList parts = line.split( ' ', SplitSkipEmptyParts ); - if ( parts.length() == 3 && !parts[ 0 ].startsWith( '#' ) ) + if ( parts.length() >= 3 && !parts[ 0 ].startsWith( '#' ) ) { - // Lines have format: , so check + // Lines have format: ..., so check // the mountpoint field. Everything starts with an empty string. if ( parts[ 1 ].startsWith( mountPrefix ) ) {