[fsresizer] Initialize harder
This commit is contained in:
parent
e627633c44
commit
14b6755714
@ -216,7 +216,7 @@ ResizeFSJob::exec()
|
|||||||
tr( "KPMCore not Available" ),
|
tr( "KPMCore not Available" ),
|
||||||
tr( "Calamares cannot start KPMCore for the file-system resize job." ) );
|
tr( "Calamares cannot start KPMCore for the file-system resize job." ) );
|
||||||
}
|
}
|
||||||
backend_p->initFSSupport();
|
backend_p->initFSSupport(); // Might not be enough, see below
|
||||||
|
|
||||||
// Now get the partition and FS we want to work on
|
// Now get the partition and FS we want to work on
|
||||||
PartitionMatch m = findPartition( backend_p );
|
PartitionMatch m = findPartition( backend_p );
|
||||||
@ -226,6 +226,7 @@ ResizeFSJob::exec()
|
|||||||
!m_fsname.isEmpty() ? tr( "The filesystem %1 could not be found in this system, and can not be resized." ).arg(m_fsname)
|
!m_fsname.isEmpty() ? tr( "The filesystem %1 could not be found in this system, and can not be resized." ).arg(m_fsname)
|
||||||
: tr( "The device %1 could not be found in this system, and can not be resized." ).arg(m_devicename) );
|
: tr( "The device %1 could not be found in this system, and can not be resized." ).arg(m_devicename) );
|
||||||
|
|
||||||
|
m.second->fileSystem().init(); // Initialize support for specific FS
|
||||||
if ( !ResizeOperation::canGrow( m.second ) )
|
if ( !ResizeOperation::canGrow( m.second ) )
|
||||||
{
|
{
|
||||||
cDebug() << "canGrow() returned false.";
|
cDebug() << "canGrow() returned false.";
|
||||||
|
Loading…
Reference in New Issue
Block a user