Linux: fix mount issue on Fedora 23 by forcing the creation of a default loop device.

This commit is contained in:
Mounir IDRASSI 2016-02-21 23:57:12 +01:00
parent 50f85b4512
commit facfda73eb

View File

@ -42,6 +42,17 @@ namespace VeraCrypt
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++)
{
string loopDev;