mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 02:45:44 -05:00
[fsresizer] Bail out if resize required but not feasible
This commit is contained in:
parent
0b4c0f9c38
commit
eb7c6385cd
1 changed files with 6 additions and 1 deletions
|
@ -297,9 +297,14 @@ ResizeFSJob::exec()
|
|||
: tr( "The device %1 can not be resized." ).arg(m_devicename) );
|
||||
if ( new_end == 0 )
|
||||
{
|
||||
// TODO: is that a bad thing? is the resize required?
|
||||
cWarning() << "Resize operation on" << m_fsname << m_devicename
|
||||
<< "skipped as not-useful.";
|
||||
if ( m_required )
|
||||
return Calamares::JobResult::error(
|
||||
tr( "Resize Failed" ),
|
||||
!m_fsname.isEmpty() ? tr( "The filesystem %1 must be resized, but cannot." ).arg(m_fsname)
|
||||
: tr( "The device %11 must be resized, but cannot" ).arg(m_fsname) );
|
||||
|
||||
return Calamares::JobResult::ok();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue