Overview#

The PKI module source for Fedora is located at https://src.fedoraproject.org/modules/pki.

Module streams:

Authentication#

Obtain a Kerberos ticket for FEDORAPROJECT.ORG account and COPR authentication token.

Getting Module Source#

$ cd Fedora
$ fedpkg clone modules/pki modules/pki
$ cd modules/pki
$ git checkout 10.6

Updating Module Packages#

Follow the following procedures to update the packages in the module, but do not create the Koji build:

If any of the packages is updated, make sure the module is updated as well, or create an empty commit:

$ cd Fedora/modules/pki
$ git commit --allow-empty
$ git push origin 10.6

Creating Local Build#

To create a local build:

$ cd Fedora/modules/pki
$ fedpkg module-build-local -s ``\ ```platform:f28 <platform:f28>`__

or:

$ mbs-manager build_module_locally --file pki.yaml -s ``\ ```platform:f28 <platform:f28>`__

To install the local build, create /etc/yum.repos.d/local.repo:

[local]
name=Local Repository
baseurl=file:///home/<username>/modulebuild/builds/module-<name>-<stream>-<timestamp>/results/
gpgcheck=0
enabled=1

Then execute the following:

$ dnf module install <name>:<stream>

See also:

Creating COPR Build#

To create a COPR build:

$ cd Fedora/modules/pki
``$ copr build-module –yaml pki.yaml ``

To install the module:

``$ dnf copr enable ``
$ dnf module install pki:10.6

See also How to build modules in Copr.

Creating Official Build#

To create an official build:

$ cd Fedora/modules/pki
$ fedpkg module-build

NOTE:If there are no changes to the module itself, you still need to add an empty commit to the module. If not, mbs will just resubmit your previous module build.

$ git commit --allow-empty -m "Retriggering module build to pickup rebased packages"
``$ git push origin ``

The build taks will appear in Fedora’s MBS.

To check build status:

``$ fedpkg module-build-info ``

Wait until all components are in COMPLETE state.

To cancel a build:

$ fedpkg module-build-cancel &lt;build ID&gt;

Creating Bodhi Update#

T.B.A.

See Also#