From bd1b48224280676189d3593d6f866a0076ff1f64 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 2 Nov 2018 11:58:49 -0400 Subject: [PATCH] [partition] Don't autoremove the tempdir - Dangerout since we're mounting things inside that tempdir, and then doing a "weak" unmount --- src/modules/partition/core/PartUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/partition/core/PartUtils.cpp b/src/modules/partition/core/PartUtils.cpp index a6a607d94..0423e1dde 100644 --- a/src/modules/partition/core/PartUtils.cpp +++ b/src/modules/partition/core/PartUtils.cpp @@ -163,6 +163,7 @@ lookForFstabEntries( const QString& partitionPath ) { FstabEntryList fstabEntries; QTemporaryDir mountsDir; + mountsDir.setAutoRemove( false ); int exit = QProcess::execute( "mount", { partitionPath, mountsDir.path() } ); if ( !exit ) // if all is well