VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-02-21 23:57:12 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-02-22 00:34:36 +0100
commitfacfda73eb607b8aba0c90f54d82c19ba057b0c9 (patch)
treed444201b63c3930b26fdadd5b9c760212ea75043 /src
parent50f85b4512017a41b289f2c0f9d4938e3409c84f (diff)
downloadVeraCrypt-facfda73eb607b8aba0c90f54d82c19ba057b0c9.tar.gz
VeraCrypt-facfda73eb607b8aba0c90f54d82c19ba057b0c9.zip
Linux: fix mount issue on Fedora 23 by forcing the creation of a default loop device.
Diffstat (limited to 'src')
-rw-r--r--src/Core/Unix/Linux/CoreLinux.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Core/Unix/Linux/CoreLinux.cpp b/src/Core/Unix/Linux/CoreLinux.cpp
index b58b6f6c..5cd12107 100644
--- a/src/Core/Unix/Linux/CoreLinux.cpp
+++ b/src/Core/Unix/Linux/CoreLinux.cpp
@@ -41,6 +41,17 @@ namespace VeraCrypt
loopPaths.push_back ("/dev/loop");
loopPaths.push_back ("/dev/loop/");
loopPaths.push_back ("/dev/.static/dev/loop");
+
+ // On Fedora 23,"losetup -f" must be called first to create a default loop device
+ list <string> args;
+ args.push_back ("-f");
+
+ try
+ {
+ Process::Execute ("losetup", args);
+ break;
+ }
+ catch (...) { }
for (int devIndex = 0; devIndex < 256; devIndex++)
{