core: use DEVINO_CANONICAL regardless of repo type
If the policy didn't change, then it's safe to use the devino cache regardless of the repo type. This dates from #1123; I think the rationale there was so that it only affects the pkglayering path, where the system repo is bare. But really, it should be fine to generalize this since we don't have any xattr callbacks. Closes: #1658 Approved by: cgwalters
This commit is contained in:
parent
38c2ab3397
commit
5c4e88da9c
@ -4399,11 +4399,8 @@ rpmostree_context_commit (RpmOstreeContext *self,
|
||||
if (ostree_sepolicy_get_name (final_sepolicy) == NULL ||
|
||||
g_strcmp0 (ostree_sepolicy_get_csum (self->sepolicy),
|
||||
ostree_sepolicy_get_csum (final_sepolicy)) == 0)
|
||||
{
|
||||
if (ostree_repo_get_mode (self->ostreerepo) == OSTREE_REPO_MODE_BARE)
|
||||
modflags |= OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL;
|
||||
}
|
||||
}
|
||||
|
||||
commit_modifier = ostree_repo_commit_modifier_new (modflags, NULL, NULL, NULL);
|
||||
if (final_sepolicy)
|
||||
|
Loading…
Reference in New Issue
Block a user