[partition] Make mountPoint optional

Some devices cannot be mounted (as DM_verity_hash), therefore, it is
nosense to set a mountPoint for them.
This commit is contained in:
Gaël PORTAY 2020-06-17 14:16:20 -04:00
parent 486cdaeeb6
commit 1f9f506a16
2 changed files with 2 additions and 3 deletions

View file

@ -134,8 +134,7 @@ PartitionLayout::init( const QVariantList& config )
{
QVariantMap pentry = r.toMap();
if ( !pentry.contains( "name" ) || !pentry.contains( "mountPoint" ) || !pentry.contains( "filesystem" )
|| !pentry.contains( "size" ) )
if ( !pentry.contains( "name" ) || !pentry.contains( "filesystem" ) || !pentry.contains( "size" ) )
{
cError() << "Partition layout entry #" << config.indexOf( r )
<< "lacks mandatory attributes, switching to default layout.";