From 5b4fae60a8b9e45ce813ad4840c42f406be49a3f Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 14 Apr 2026 23:37:41 +0900 Subject: [PATCH] Linux: honor nokernelcrypto during external formatting --- src/Main/TextUserInterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Main/TextUserInterface.cpp b/src/Main/TextUserInterface.cpp index 2ec086a3..8c5328cc 100644 --- a/src/Main/TextUserInterface.cpp +++ b/src/Main/TextUserInterface.cpp @@ -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 (options->Path); mountOptions.NoFilesystem = true; mountOptions.Protection = VolumeProtection::None;