Skip to content

Commit b3217c7

Browse files
committed
1 parent 3459988 commit b3217c7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/libpriv/rpmostree-core.cxx

+10-10
Original file line numberDiff line numberDiff line change
@@ -4518,23 +4518,23 @@ rpmostree_context_assemble (RpmOstreeContext *self, GCancellable *cancellable, G
45184518
return FALSE;
45194519
}
45204520

4521-
if (faccessat (tmprootfs_dfd, "etc/passwd", F_OK, 0) == 0)
4522-
{
4523-
CXX_TRY (passwd_entries->add_passwd_content (tmprootfs_dfd, "etc/passwd"), error);
4524-
}
4525-
4526-
if (faccessat (tmprootfs_dfd, "etc/group", F_OK, 0) == 0)
4527-
{
4528-
CXX_TRY (passwd_entries->add_group_content (tmprootfs_dfd, "etc/group"), error);
4529-
}
4530-
45314521
{
45324522
auto task = rpmostreecxx::progress_begin_task ("Running post scripts");
45334523
guint n_post_scripts_run = 0;
45344524

45354525
/* %post */
45364526
for (guint i = 0; i < n_rpmts_elements; i++)
45374527
{
4528+
if (faccessat (tmprootfs_dfd, "etc/passwd", F_OK, 0) == 0)
4529+
{
4530+
CXX_TRY (passwd_entries->add_passwd_content (tmprootfs_dfd, "etc/passwd"), error);
4531+
}
4532+
4533+
if (faccessat (tmprootfs_dfd, "etc/group", F_OK, 0) == 0)
4534+
{
4535+
CXX_TRY (passwd_entries->add_group_content (tmprootfs_dfd, "etc/group"), error);
4536+
}
4537+
45384538
rpmte te = rpmtsElement (ordering_ts, i);
45394539
if (rpmteType (te) != TR_ADDED)
45404540
continue;

0 commit comments

Comments
 (0)