mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Having a mounted partition should not disqualify the entire device.
FIXES #780 (should reopen #639 for double-checking)
This commit is contained in:
parent
85595b4e04
commit
c5abfd6371
1 changed files with 3 additions and 3 deletions
|
@ -52,8 +52,9 @@ hasRootPartition( Device* device )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Unused */
|
||||||
static bool
|
static bool
|
||||||
isMounted( Device* device )
|
hasMountedPartitions( Device* device )
|
||||||
{
|
{
|
||||||
cDebug() << "Checking for mounted partitions in" << device->deviceNode();
|
cDebug() << "Checking for mounted partitions in" << device->deviceNode();
|
||||||
for ( auto it = PartitionIterator::begin( device ); it != PartitionIterator::end( device ); ++it )
|
for ( auto it = PartitionIterator::begin( device ); it != PartitionIterator::end( device ); ++it )
|
||||||
|
@ -128,8 +129,7 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
|
||||||
}
|
}
|
||||||
else if ( writableOnly && (
|
else if ( writableOnly && (
|
||||||
hasRootPartition( *it ) ||
|
hasRootPartition( *it ) ||
|
||||||
isIso9660( *it ) ||
|
isIso9660( *it ) )
|
||||||
isMounted( *it ) )
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
cDebug() << " .. Removing" << it;
|
cDebug() << " .. Removing" << it;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue