VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-02-21 22:57:12 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-02-21 23:34:36 (GMT)
commitfacfda73eb607b8aba0c90f54d82c19ba057b0c9 (patch)
treed444201b63c3930b26fdadd5b9c760212ea75043
parent50f85b4512017a41b289f2c0f9d4938e3409c84f (diff)
downloadVeraCrypt-facfda73eb607b8aba0c90f54d82c19ba057b0c9.zip
VeraCrypt-facfda73eb607b8aba0c90f54d82c19ba057b0c9.tar.gz
Linux: fix mount issue on Fedora 23 by forcing the creation of a default loop device.
-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 b58b6f6..5cd1210 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++)
{