Skip to content

Conversation

@supakeen
Copy link
Member

After a chat in our community Matrix channel I realized that we have not documented the various ways of managing repositories in image-builder. Let's start that off with a small initial page that I will build on in the following commits.

@supakeen supakeen force-pushed the repository-documentation branch 11 times, most recently from 8361d2b to 4f94477 Compare November 28, 2025 12:19
For more information on the format and available options see the [managing repositories](https://osbuild.org/docs/on-premises/installation/managing-repositories/) page.

## `force-repo` / `extra-repo`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs a separate paragraph making it clear this overrides repos for all distributions. You mention it in the example, but that could be missed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a blurb to say that it is up to the user to make sure that the given repositories are correct for the distribution they are wanting to build.

achilleas-k
achilleas-k previously approved these changes Dec 3, 2025
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Some minor comments, but ok to ignore or address separately.

@@ -0,0 +1,103 @@
# Repository Management

When building package based images `image-builder` will use repositories to get packages from. `image-builder` ships with built-in definitions and repositories for a [list of distributions](../10-faq.md#built-in-distributions). These are used when building artifacts.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit of an awkward sentence structure here ("... to get the packages from.").

How about:

When building package-based images, image-builder downloads packages from pre-defined repositories.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


When building package based images `image-builder` will use repositories to get packages from. `image-builder` ships with built-in definitions and repositories for a [list of distributions](../10-faq.md#built-in-distributions). These are used when building artifacts.

A common request is to enable additional repositories, override the repositories used, redirect repositories, or include additional repositories in the produced artifact. For this we need to go through the way `image-builder` uses repositories for each step of the build process.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd replace "request" with "requirement".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

$ sudo image-builder build --distro fedora-43 --force-repo https://some/base/url minimal-raw-xz
```

`force-repo` can be passed multiple times. When this is done all `force-repo` repositories are used but no built in repositories.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word "passed" is used a lot in this section. Let's reduce the number a bit and instead say "can be used multiple times" (or maybe "specified", if you prefer).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've replaced some with "given", and some with "can be used". Large reduction in the use of passed :)

@supakeen supakeen force-pushed the repository-documentation branch 2 times, most recently from 175d9b8 to 0020c06 Compare December 15, 2025 10:44
After a chat in our community Matrix channel I realized that we have not
documented the various ways of managing repositories in `image-builder`.
Let's start that off with a small initial page that I will build on in
the following commits.

This relies on the implementation of the new `force-repo-dir` behavior
as that's the behavior documented [1].

[1]: osbuild#408

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
@supakeen supakeen force-pushed the repository-documentation branch from 0020c06 to c733f81 Compare December 15, 2025 10:46
With the potential to use YAML for repository file formats let's make
sure it's the advertised way [1].

[1]: osbuild/images#2095

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants