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

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;