crowbar-core icon indicating copy to clipboard operation
crowbar-core copied to clipboard

provisioner: remove repos before adding ours

Open bmwiedemann opened this issue 7 years ago • 5 comments

to make it easier to re-run crowbar_register in case of errors

bmwiedemann avatar Jan 31 '18 10:01 bmwiedemann

can't users have some custom repos? (on the other hand, we're doing this as well during the upgrade)

jsuchome avatar Jan 31 '18 10:01 jsuchome

They could have custom repos, but then those repo names could collide with crowbar's too ... and if they are not SUSE repos, packages could collide which we do not want to support.

bmwiedemann avatar Jan 31 '18 10:01 bmwiedemann

But if the customer wants to add custom repositories, when would they need to add them? Is crowbar_register run only when you allocate a new node?

nicolasbock avatar Jan 31 '18 12:01 nicolasbock

it only runs once.

an alternative would be to do zypper rr $repo before adding it, so we only drop repos with our names.

bmwiedemann avatar Jan 31 '18 13:01 bmwiedemann

zypper rr $repo sounds indeed safer, however as pointed out in the case of upgrade, we actually do remove all present repos at some point ... so I think it does not hurt in this time, esp. when the user can add extra repos after runing crowbar_register

jsuchome avatar Jan 31 '18 13:01 jsuchome