mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	Fallback to ldconfig if ldconfig.real does not exist
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
		
							parent
							
								
									49de170652
								
							
						
					
					
						commit
						90c4c4811a
					
				| @ -173,5 +173,8 @@ func GetDefaultConfigToml() (*toml.Tree, error) { | ||||
| } | ||||
| 
 | ||||
| func getLdConfigPath() string { | ||||
| 	return "@/sbin/ldconfig.real" | ||||
| 	if _, err := os.Stat("/sbin/ldconfig.real"); err == nil { | ||||
| 		return "@/sbin/ldconfig.real" | ||||
| 	} | ||||
| 	return "@/sbin/ldconfig" | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user