-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: add new
--extra-repo-path
flag
This commit adds a new flag `--extra-repo` that can be used to point to a repository directory that is added to the base repositories when depsolving. This means that with a repo created with e.g. `createrepo_c` like ```console $ mkdir repo $ (cd repo && dnf download hello) $ createrepo_c ./repo ``` and a blueprint like: ```toml [[packages]] name = "hello" ``` a manifest is generated that gets osbuild from the copr repo: ```console $ image-builder --extra-repo ./repo manifest qcow2 --distro centos-9 --blueprint ./bp.toml |jq|grep python3-osbuild "path": "hello-2.12.1-5.fc41.x86_64.rpm", ``` Note that this is part of the base repositories so anything with a higher version number will get pulled from the extra-repo, even system libraries or kernels. Note also that this repository does not become part of the image so after the image build all rpms from there are not updated (unless of course the normal repos have higher versions of them). Note as well that there is no safeguard right now against adding extra repos for the wrong version of the distro, i.e. one could add an extra repo build against/for fedora-42 on a fedora-40 image which most likely will break with bad depsolve errors. But that is okay, this option is meant for advanced users and testing.
- Loading branch information
Showing
9 changed files
with
130 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.