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 Apr 12, 2015
1 parent 54e02cc commit da1df77
Show file tree
Hide file tree
Showing 9 changed files with 494 additions and 11 deletions.
1 change: 1 addition & 0 deletions Makefile-rpm-ostree.am
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,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
1 change: 1 addition & 0 deletions src/app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ static RpmOstreeCommand commands[] = {
{ "compose", rpmostree_builtin_compose },
#endif
{ "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 da1df77

Please sign in to comment.