Restore back functionality of unmounting all mount points.
This commit is contained in:
parent
b653b5b6e3
commit
1dfe304fd2
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue