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