File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -2045,3 +2045,13 @@ let unit_test ~__context : bool =
20452045      true 
20462046  |  None  ->
20472047      false 
2048+ 
2049+ let  get_active_uefi_certificates  ~__context  ~self   = 
2050+   let  custom_uefi_certs = 
2051+     Db.Pool. get_custom_uefi_certificates ~__context ~self 
2052+   in 
2053+   match  (! Xapi_globs. allow_custom_uefi_certs, custom_uefi_certs) with 
2054+   |  false , _  |  true , ""  ->
2055+       Db.Pool. get_uefi_certificates ~__context ~self 
2056+   |  true , _  ->
2057+       custom_uefi_certs
Original file line number Diff line number Diff line change @@ -290,9 +290,8 @@ let update_platform_secureboot ~__context ~self platform =
290290  |  exception  Not_found  ->
291291      platform
292292  |  "auto"  ->
293-       ( " secureboot" 
294-       , string_of_bool (Db.Pool. get_uefi_certificates ~__context ~self  <>  " " 
295-       )
293+       let  uefi_certs =  Helpers. get_active_uefi_certificates ~__context ~self  in 
294+       (" secureboot" <>  " " 
296295      :: List. remove_assoc " secureboot" 
297296  |  _  ->
298297      platform
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments