« Back to projectatomic.io
Ask Your Question

rpm-ostree compose gives error: "No package matches 'atomic'"

asked 2017-01-09 21:28:33 +0000

banjer gravatar image


I'm trying to build a custom CentOS 7 Atomic image. I'm working from Fedora 25 set up using a Dockerfile similar to the one in http://www.projectatomic.io/docs/comp... . I created a custom tree file called centos-atomic-host-custom.json with the following:

 "include": "centos-atomic-host.json",
 "packages": ["open-vm-tools"],
 "units": ["vmtoolsd"]

When I attempt to compose the tree with:

rpm-ostree compose tree --repo=/srv/rpm-ostree/repo ./centos-atomic-host-custom.json

I get

No previous commit for centos-atomic-host/7/x86_64/standard

Downloading metadata: [==========================================================] 100%
error: No package matches 'atomic'

I'm assuming it can't find the very first package in centos-atomic-host.json, so its like the centos repos aren't being set up properly? The "atomic" package is in the centos extra repo I believe, which is listed as a repo in the json file.

Any ideas?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-01-10 14:35:15 +0000

jlebon gravatar image

Try using the downstream branch of the sig-atomic-buildscripts repo instead. The master branch is used for the continuous release of certain packages relevant to the container effort, such as atomic (for more info, see: https://wiki.centos.org/SpecialIntere... ).

Also, one must be careful when doing "cross-composing" since e.g. $releasever variables in repo files might not be subbed out properly. In your case, it might be easier to just use a centos container for composing CentOS trees (you can use the rpm-ostree package available from the atomic7-testing.repo).

edit flag offensive delete link more


Thanks for the reply. Switching to the `downstream` branch fixed it for me. I'll keep the rest in mind.

banjer ( 2017-01-10 15:51:07 +0000 )edit

FYI steps on building a custom centos 7 atomic host added here: https://github.com/imsweb/centos7-atomic-custom .

banjer ( 2017-01-17 17:11:13 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2017-01-09 21:28:33 +0000

Seen: 38 times

Last updated: Jan 10