1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-05-21 21:30:48 -05:00

Linux: honor nokernelcrypto during external formatting

This commit is contained in:
Mounir IDRASSI
2026-04-14 23:37:41 +09:00
parent 868dab4fca
commit 5b4fae60a8
+4
View File
@@ -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;