From 835c60f409882a11865c3791038d9c95b9d19777 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Wed, 31 Jan 2018 10:50:31 +0100 Subject: [PATCH] provisioner: remove repos before adding ours to make it easier to re-run crowbar_register in case of errors --- chef/cookbooks/provisioner/templates/suse/crowbar_register.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/chef/cookbooks/provisioner/templates/suse/crowbar_register.erb b/chef/cookbooks/provisioner/templates/suse/crowbar_register.erb index ec121be2c4..3fc93d8e70 100644 --- a/chef/cookbooks/provisioner/templates/suse/crowbar_register.erb +++ b/chef/cookbooks/provisioner/templates/suse/crowbar_register.erb @@ -277,6 +277,7 @@ fi # Setup the repos # --------------- +rm -f /etc/zypp/repos.d/*.repo <% @repos.keys.sort.each do |name| %> zypper -n ar "<%= @repos[name][:url] %>" "<%= name %>" <% unless @repos[name][:priority] == 99 -%>