mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
#780: check for isMounted(), not for where-would-it-be-mounted
This commit is contained in:
parent
7791c3cb19
commit
85595b4e04
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ isMounted( Device* device )
|
|||
cDebug() << "Checking for mounted partitions in" << device->deviceNode();
|
||||
for ( auto it = PartitionIterator::begin( device ); it != PartitionIterator::end( device ); ++it )
|
||||
{
|
||||
if ( ! ( *it )->mountPoint().isEmpty() )
|
||||
if ( ! ( *it )->isMounted() )
|
||||
{
|
||||
cDebug() << " .." << ( *it )->partitionPath() << "is mounted on" << ( *it )->mountPoint();
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue