Fallback to ldconfig if ldconfig.real does not exist

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-03-13 14:38:10 +02:00
parent 49de170652
commit 90c4c4811a

View File

@ -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"
}