[partition] Complain if unmount fails

- If unmount fails, then warn and don't autoremove
main
Adriaan de Groot 6 years ago
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…
Cancel
Save