mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
Exclude loop devices with mounted children from devices list.
This commit is contained in:
parent
b0122f25e5
commit
ad219e1b8e
1 changed files with 4 additions and 1 deletions
|
@ -127,7 +127,10 @@ PartitionCoreModule::doInit()
|
||||||
// Remove the device which contains / from the list
|
// Remove the device which contains / from the list
|
||||||
for ( QList< Device* >::iterator it = devices.begin(); it != devices.end(); )
|
for ( QList< Device* >::iterator it = devices.begin(); it != devices.end(); )
|
||||||
if ( hasRootPartition( *it ) ||
|
if ( hasRootPartition( *it ) ||
|
||||||
(*it)->deviceNode().startsWith( "/dev/zram") )
|
(*it)->deviceNode().startsWith( "/dev/zram") ||
|
||||||
|
( (*it)->partitionTable() &&
|
||||||
|
(*it)->partitionTable()->type() == PartitionTable::loop &&
|
||||||
|
(*it)->partitionTable()->isChildMounted() ) )
|
||||||
it = devices.erase( it );
|
it = devices.erase( it );
|
||||||
else
|
else
|
||||||
++it;
|
++it;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue