[partition] Complain if unmount fails
- If unmount fails, then warn and don't autoremove
This commit is contained in:
parent
bd1b482242
commit
516ae494bf
@ -196,7 +196,12 @@ lookForFstabEntries( const QString& partitionPath )
|
||||
fstabFile.close();
|
||||
}
|
||||
|
||||
QProcess::execute( "umount", { "-R", mountsDir.path() } );
|
||||
if ( QProcess::execute( "umount", { "-R", mountsDir.path() } ) )
|
||||
{
|
||||
cWarning() << "Could not unmount" << mountsDir.path();
|
||||
// There is stuff left in there, really don't remove
|
||||
mountsDir.setAutoRemove( false );
|
||||
}
|
||||
}
|
||||
|
||||
return fstabEntries;
|
||||
|
Loading…
Reference in New Issue
Block a user