Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ocaml/xapi/repository.ml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@ let sync ~__context ~self ~token ~token_id ~username ~password =
* will always write_initial_yum_config every time before syncing repo,
* this should be ok.
*)
write_initial_yum_config ~binary_url
match Pkgs.manager with
| Yum ->
write_initial_yum_config ~binary_url
| Dnf ->
Unixext.unlink_safe !Xapi_globs.dnf_repo_config_file
) ;
(* The custom yum-utils will fully download repository metadata including
* the repo gpg signature.
Expand Down
3 changes: 3 additions & 0 deletions ocaml/xapi/xapi_globs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,9 @@ let pvsproxy_close_cache_vdi = ref "/opt/citrix/pvsproxy/close-cache-vdi.sh"

let yum_repos_config_dir = ref "/etc/yum.repos.d"

let dnf_repo_config_file =
ref "/etc/dnf/repos.override.d/99-config_manager.repo"

let remote_repository_prefix = ref "remote"

let bundle_repository_prefix = ref "bundle"
Expand Down
Loading