diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Core/Unix/Linux/CoreLinux.cpp | 11 |
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++) { |