mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-14 08:31:29 +00:00
Linux: honor nokernelcrypto during external formatting
This commit is contained in:
@@ -1004,6 +1004,10 @@ namespace VeraCrypt
|
||||
throw ParameterIncorrect (SRC_POS);
|
||||
|
||||
MountOptions mountOptions (GetPreferences().DefaultMountOptions);
|
||||
#ifdef TC_LINUX
|
||||
if (CmdLine->ArgMountOptions.NoKernelCrypto)
|
||||
mountOptions.NoKernelCrypto = true;
|
||||
#endif
|
||||
mountOptions.Path = make_shared <VolumePath> (options->Path);
|
||||
mountOptions.NoFilesystem = true;
|
||||
mountOptions.Protection = VolumeProtection::None;
|
||||
|
||||
Reference in New Issue
Block a user