mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-28 05:53:29 +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
@ -41,6 +41,17 @@ namespace VeraCrypt
|
|||||||
loopPaths.push_back ("/dev/loop");
|
loopPaths.push_back ("/dev/loop");
|
||||||
loopPaths.push_back ("/dev/loop/");
|
loopPaths.push_back ("/dev/loop/");
|
||||||
loopPaths.push_back ("/dev/.static/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++)
|
for (int devIndex = 0; devIndex < 256; devIndex++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user