Skip to content

Commit

Permalink
compose: Add treefile as arg to postprocess
Browse files Browse the repository at this point in the history
Prep for sysusers.
  • Loading branch information
cgwalters committed Mar 16, 2019
1 parent d919a13 commit c8f81b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/rpmostree-compose-builtin-rojig.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ impl_write_rojig (RpmOstreeRojigCompose *self,
return FALSE;
if (!rpmostree_rootfs_postprocess_common (self->rootfs_dfd, cancellable, error))
return FALSE;
if (!rpmostree_postprocess_final (self->rootfs_dfd, self->treefile, TRUE,
if (!rpmostree_postprocess_final (self->rootfs_dfd, self->treefile_rs, self->treefile, TRUE,
cancellable, error))
return FALSE;

Expand Down
5 changes: 3 additions & 2 deletions src/app/rpmostree-compose-builtin-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,8 @@ impl_commit_tree (RpmOstreeTreeComposeContext *self,
return FALSE;
if (!rpmostree_rootfs_postprocess_common (self->rootfs_dfd, cancellable, error))
return FALSE;
if (!rpmostree_postprocess_final (self->rootfs_dfd, self->treefile, self->unified_core_and_fuse,
if (!rpmostree_postprocess_final (self->rootfs_dfd, self->treefile_rs,
self->treefile, self->unified_core_and_fuse,
cancellable, error))
return FALSE;

Expand Down Expand Up @@ -1184,7 +1185,7 @@ rpmostree_compose_builtin_postprocess (int argc,
return FALSE;
if (!rpmostree_rootfs_postprocess_common (rootfs_dfd, cancellable, error))
return FALSE;
if (!rpmostree_postprocess_final (rootfs_dfd, treefile, opt_unified_core,
if (!rpmostree_postprocess_final (rootfs_dfd, treefile_rs, treefile, opt_unified_core,
cancellable, error))
return FALSE;
return TRUE;
Expand Down
1 change: 1 addition & 0 deletions src/libpriv/rpmostree-postprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,7 @@ postprocess_selinux_policy_store_location (int rootfs_dfd,
*/
gboolean
rpmostree_postprocess_final (int rootfs_dfd,
RORTreefile *treefile_rs,
JsonObject *treefile,
gboolean unified_core_mode,
GCancellable *cancellable,
Expand Down
1 change: 1 addition & 0 deletions src/libpriv/rpmostree-postprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ rpmostree_prepare_rootfs_for_commit (int src_rootfs_dfd,

gboolean
rpmostree_postprocess_final (int rootfs_dfd,
RORTreefile *treefile_rs,
JsonObject *treefile,
gboolean unified_core_mode,
GCancellable *cancellable,
Expand Down

0 comments on commit c8f81b4

Please sign in to comment.