diff --git a/src/fs/filesystem.cpp b/src/fs/filesystem.cpp index 15b83bc..8941b50 100644 --- a/src/fs/filesystem.cpp +++ b/src/fs/filesystem.cpp @@ -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; diff --git a/src/fs/luks.cpp b/src/fs/luks.cpp index 8ce28b1..6696ef4 100644 --- a/src/fs/luks.cpp +++ b/src/fs/luks.cpp @@ -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;