This is an automated email from the ASF dual-hosted git repository.

weizhou pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new 1c98b5a4e56 Change Cryptsetup validation (#8482)
1c98b5a4e56 is described below

commit 1c98b5a4e56fad0b7b28378fc8d256c53b5a66b6
Author: Lucas Martins <[email protected]>
AuthorDate: Wed Jan 31 10:23:53 2024 -0300

    Change Cryptsetup validation (#8482)
    
    Co-authored-by: lucas.martins.scclouds <[email protected]>
---
 .../main/java/org/apache/cloudstack/utils/cryptsetup/CryptSetup.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/cryptsetup/CryptSetup.java
 
b/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/cryptsetup/CryptSetup.java
index 82c4ebe6d8f..bcdb9acb7b6 100644
--- 
a/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/cryptsetup/CryptSetup.java
+++ 
b/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/cryptsetup/CryptSetup.java
@@ -108,7 +108,7 @@ public class CryptSetup {
 
     public boolean isSupported() {
         final Script script = new Script(commandPath);
-        script.add("--usage");
+        script.add("--version");
         final String result = script.execute();
         return result == null;
     }

Reply via email to