passwd-util: Drop unnecessary OstreeRepo arg
We don't actually need the repo in `rpmostree_passwd_compose_prep()` since we're already passed the OstreeRepoFile root of the previous commit as a separate arg. Closes: #1658 Approved by: cgwalters
This commit is contained in:
parent
8adeb970e3
commit
82ceef78ce
@ -199,9 +199,8 @@ install_packages (RpmOstreeRojigCompose *self,
|
||||
if (opt_download_only)
|
||||
return TRUE; /* 🔚 Early return */
|
||||
|
||||
if (!rpmostree_passwd_compose_prep (self->repo, self->rootfs_dfd, TRUE,
|
||||
self->treefile_rs, self->treefile,
|
||||
NULL, cancellable, error))
|
||||
if (!rpmostree_passwd_compose_prep (self->rootfs_dfd, TRUE, self->treefile_rs,
|
||||
self->treefile, NULL, cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
rpmostree_context_set_tmprootfs_dfd (self->corectx, self->rootfs_dfd);
|
||||
|
@ -331,9 +331,8 @@ install_packages (RpmOstreeTreeComposeContext *self,
|
||||
}
|
||||
|
||||
/* Before we install packages, inject /etc/{passwd,group} if configured. */
|
||||
if (!rpmostree_passwd_compose_prep (self->repo, rootfs_dfd, opt_unified_core,
|
||||
self->treefile_rs, self->treefile,
|
||||
self->previous_root,
|
||||
if (!rpmostree_passwd_compose_prep (rootfs_dfd, opt_unified_core, self->treefile_rs,
|
||||
self->treefile, self->previous_root,
|
||||
cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
|
@ -1068,8 +1068,7 @@ _data_from_json (int rootfs_dfd,
|
||||
* down any files, and notably before running RPM `useradd` etc.
|
||||
*/
|
||||
gboolean
|
||||
rpmostree_passwd_compose_prep (OstreeRepo *repo,
|
||||
int rootfs_dfd,
|
||||
rpmostree_passwd_compose_prep (int rootfs_dfd,
|
||||
gboolean unified_core,
|
||||
RORTreefile *treefile_rs,
|
||||
JsonObject *treedata,
|
||||
|
@ -57,8 +57,7 @@ rpmostree_passwd_migrate_except_root (int rootfs_dfd,
|
||||
GError **error);
|
||||
|
||||
gboolean
|
||||
rpmostree_passwd_compose_prep (OstreeRepo *repo,
|
||||
int rootfs_dfd,
|
||||
rpmostree_passwd_compose_prep (int rootfs_dfd,
|
||||
gboolean unified_core,
|
||||
RORTreefile *treefile_rs,
|
||||
JsonObject *treedata,
|
||||
|
Loading…
Reference in New Issue
Block a user