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,
|
ExternalCommand umountCmd( report,
|
||||||
QStringLiteral("umount"),
|
QStringLiteral("umount"),
|
||||||
{ QStringLiteral("--verbose"),
|
{ QStringLiteral("--verbose"),
|
||||||
|
QStringLiteral("--all-targets"),
|
||||||
deviceNode });
|
deviceNode });
|
||||||
if ( umountCmd.run() && umountCmd.exitCode() == 0 )
|
if ( umountCmd.run() && umountCmd.exitCode() == 0 )
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -437,7 +437,7 @@ bool luks::unmount(Report& report, const QString& deviceNode)
|
||||||
else {
|
else {
|
||||||
ExternalCommand unmountCmd( report,
|
ExternalCommand unmountCmd( report,
|
||||||
QStringLiteral("umount"),
|
QStringLiteral("umount"),
|
||||||
{ QStringLiteral("--verbose"), mapperNode });
|
{ QStringLiteral("--verbose"), QStringLiteral("--all-targets"), mapperNode });
|
||||||
if (unmountCmd.run() && unmountCmd.exitCode() == 0)
|
if (unmountCmd.run() && unmountCmd.exitCode() == 0)
|
||||||
{
|
{
|
||||||
m_isMounted = false;
|
m_isMounted = false;
|
||||||
|
|
Loading…
Reference in New Issue