From facfda73eb607b8aba0c90f54d82c19ba057b0c9 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 21 Feb 2016 23:57:12 +0100 Subject: Linux: fix mount issue on Fedora 23 by forcing the creation of a default loop device. --- src/Core/Unix/Linux/CoreLinux.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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 args; + args.push_back ("-f"); + + try + { + Process::Execute ("losetup", args); + break; + } + catch (...) { } for (int devIndex = 0; devIndex < 256; devIndex++) { -- cgit v1.2.3