mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-24 12:03:28 +01:00
Linux: fix mount issue on Fedora 23 by forcing the creation of a default loop device.
This commit is contained in:
parent
50f85b4512
commit
facfda73eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user