mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
Exclude zram from devices list.
This commit is contained in:
parent
608a51b3bc
commit
167b4fc0a2
1 changed files with 4 additions and 3 deletions
|
@ -112,11 +112,12 @@ void
|
||||||
PartitionCoreModule::init()
|
PartitionCoreModule::init()
|
||||||
{
|
{
|
||||||
CoreBackend* backend = CoreBackendManager::self()->backend();
|
CoreBackend* backend = CoreBackendManager::self()->backend();
|
||||||
auto devices = backend->scanDevices( true );
|
QList< Device* > devices = backend->scanDevices( true );
|
||||||
|
|
||||||
// Remove the device which contains / from the list
|
// Remove the device which contains / from the list
|
||||||
for ( auto 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 = devices.erase( it );
|
it = devices.erase( it );
|
||||||
else
|
else
|
||||||
++it;
|
++it;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue