Restore back functionality of unmounting all mount points.

This commit is contained in:
Andrius Štikonas 2016-05-13 23:08:58 +01:00
parent b653b5b6e3
commit 1dfe304fd2
2 changed files with 2 additions and 1 deletions

View File

@ -426,6 +426,7 @@ bool FileSystem::unmount(Report& report, const QString& deviceNode)
ExternalCommand umountCmd( report,
QStringLiteral("umount"),
{ QStringLiteral("--verbose"),
QStringLiteral("--all-targets"),
deviceNode });
if ( umountCmd.run() && umountCmd.exitCode() == 0 )
return true;

View File

@ -437,7 +437,7 @@ bool luks::unmount(Report& report, const QString& deviceNode)
else {
ExternalCommand unmountCmd( report,
QStringLiteral("umount"),
{ QStringLiteral("--verbose"), mapperNode });
{ QStringLiteral("--verbose"), QStringLiteral("--all-targets"), mapperNode });
if (unmountCmd.run() && unmountCmd.exitCode() == 0)
{
m_isMounted = false;