diff --git a/docs/koji/bootstrapping.md b/docs/koji/bootstrapping.md index f8fd6b9b7c4a03072d38523c8f50cb6aaa4ab185..9fb351501d9231e7f3c0c55721b295c37259a2ee 100644 --- a/docs/koji/bootstrapping.md +++ b/docs/koji/bootstrapping.md @@ -262,6 +262,28 @@ Don't forget to commit the files you've created so far: [aiadm10] ~/lxdist-build/bin/tags (master) > git push origin master ``` +## Create tag for EPEL + +User tags get the EPEL repo via inheritance, so we need to create the external +repo and the tag that exposes it. This is done via inheritance (and not by simply +adding the external repo to the tag) because we want to make sure the base repos +have higher priority than EPEL. In Koji, external repos added to a tag have higher +priority than inherited ones, regardless of the actual priority you set. + +```bash +[aiadm10] ~ > koji add-external-repo epel8s 'http://linuxsoft.cern.ch/epel/8/Everything/$arch/' +Created external repo 417 +[aiadm10] ~/lxdist-build/bin/tags (master) > cat epel8s.sh +#!/bin/bash + +DIST="epel8s" + +koji add-tag $DIST +koji add-external-repo --tag=$DIST epel8s -p 60 --mode=bare + +[aiadm10] ~/lxdist-build/bin/tags (master) > ./epel8s.sh +Added external repo epel8s to tag epel8s (priority 60) +``` ## Add new distro to rpmci