File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,11 @@ let sync ~__context ~self ~token ~token_id ~username ~password =
293293 * will always write_initial_yum_config every time before syncing repo,
294294 * this should be ok.
295295 *)
296- write_initial_yum_config ~binary_url
296+ match Pkgs. manager with
297+ | Yum ->
298+ write_initial_yum_config ~binary_url
299+ | Dnf ->
300+ Unixext. unlink_safe ! Xapi_globs. dnf_repo_config_file
297301 ) ;
298302 (* The custom yum-utils will fully download repository metadata including
299303 * the repo gpg signature.
Original file line number Diff line number Diff line change @@ -972,6 +972,9 @@ let pvsproxy_close_cache_vdi = ref "/opt/citrix/pvsproxy/close-cache-vdi.sh"
972972
973973let yum_repos_config_dir = ref " /etc/yum.repos.d"
974974
975+ let dnf_repo_config_file =
976+ ref " /etc/dnf/repos.override.d/99-config_manager.repo"
977+
975978let remote_repository_prefix = ref " remote"
976979
977980let bundle_repository_prefix = ref " bundle"
You can’t perform that action at this time.
0 commit comments