-
Download the Ignition RPM source by cloning the following repository: https://src.fedoraproject.org/rpms/ignition
git clone https://src.fedoraproject.org/rpms/ignition.git cd ignition
-
From the
ignition-dracut
repository you made commits in, push yourignition-dracut
changes to your fork of theignition-dracut
repository (any branch is fine).cd ignition-dracut git push --set-upstream my-remote my-feature-branch
-
Find the commit hash of your last commit by doing
git log
. Copy this hash. -
In the
ignition
repo from step 1, paste the hash in thedracutcommit
macro, on this line https://src.fedoraproject.org/rpms/ignition/blob/a614d3e5a05cbc2788b0cba592a5ee96c9f4cd0a/f/ignition.spec#_70. -
Change the
dracutproject
macro to your GitHub username where you forked the repo, so the specfile points to your fork, on this line: https://src.fedoraproject.org/rpms/ignition/blob/a614d3e5a05cbc2788b0cba592a5ee96c9f4cd0a/f/ignition.spec#_65. -
Change the Ignition version to a high number, e.g.
99.0.0
on this line https://src.fedoraproject.org/rpms/ignition/blob/a614d3e5a05cbc2788b0cba592a5ee96c9f4cd0a/f/ignition.spec#_75. This is so COSA picks up your built version, as it will pick up the latest version when overriding. -
Build the RPM by doing the following (this may require
dnf install -y rpmdevtools fedpkg dnf-plugins-core
first):cd ignition spectool -g ignition.spec dnf -y builddep ignition.spec fedpkg local
-
The built RPMs should be in a directory
x86_64
. Copy all of the RPM files from there, into theoverrides/rpm
directory in your COSA working directory. -
From the COSA working directory, execute
cosa build --force-nocache
. You should see your custom99.0.0
ignition
andignition-dracut
versions included.
Last active
June 25, 2019 21:17
-
-
Save rfairley/35fbe1f1b122981b758ed357a7679e36 to your computer and use it in GitHub Desktop.
Testing ignition-dracut changes locally
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minor:
dnf-plugins-core