Skip to content

Commit

Permalink
pkg-add: New builtin to layer additional packages
Browse files Browse the repository at this point in the history
This builds upon the earlier prototype in
https://github.com/cgwalters/atomic-pkglayer

The `.origin` file says for a replicated installation:

    [origin]
    refspec=local:rhel-atomic-host/7/x86_64/standard

If you then run `rpm-ostree pkg-add strace`, it will result in a new tree with:

    [origin]
    baserefspec=local:rhel-atomic-host/7/x86_64/standard

    [packages]
    requested=strace;

Work still remaining here is to teach `rpm-ostree status` and
`rpm-ostree upgrade` about this.
  • Loading branch information
cgwalters committed Aug 17, 2015
1 parent f46a573 commit 01f13c0
Show file tree
Hide file tree
Showing 9 changed files with 462 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile-rpm-ostree.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ rpm_ostree_SOURCES = src/app/main.c \
src/app/rpmostree-builtin-upgrade.c \
src/app/rpmostree-builtin-rollback.c \
src/app/rpmostree-builtin-rebase.c \
src/app/rpmostree-builtin-pkgadd.c \
src/app/rpmostree-builtin-status.c \
src/app/rpmostree-builtin-db.c \
src/app/rpmostree-builtin-cache.c \
Expand Down
2 changes: 1 addition & 1 deletion libglnx
Submodule libglnx updated from 376219 to 58a9a5
2 changes: 2 additions & 0 deletions src/app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ static RpmOstreeCommand commands[] = {
{ "compose", rpmostree_builtin_compose },
#endif
{ "db", rpmostree_builtin_db },
{ "upgrade", rpmostree_builtin_upgrade },
{ "pkg-add", rpmostree_builtin_pkgadd },
{ "rebase", rpmostree_builtin_rebase },
{ "cache", rpmostree_builtin_cache },
{ "rollback", rpmostree_builtin_rollback },
Expand Down
Loading

0 comments on commit 01f13c0

Please sign in to comment.