Merge pull request #2426 from cgwalters/xattrs-bareuseronly-union

checkout: Also ignore xattrs for union in bare-user-only mode
This commit is contained in:
Luca Bruno 2021-08-27 07:34:46 +00:00 committed by GitHub
commit cfa2aec839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ create_file_copy_from_input_at (OstreeRepo *repo,
* checkout_file_hardlink(). * checkout_file_hardlink().
*/ */
OstreeChecksumFlags flags = 0; OstreeChecksumFlags flags = 0;
if (repo->disable_xattrs) if (repo->disable_xattrs || repo->mode == OSTREE_REPO_MODE_BARE_USER_ONLY)
flags |= OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS; flags |= OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS;
if (repo->mode == OSTREE_REPO_MODE_BARE_USER_ONLY) if (repo->mode == OSTREE_REPO_MODE_BARE_USER_ONLY)
@ -529,7 +529,7 @@ checkout_file_hardlink (OstreeRepo *self,
* shouldn't hit this anymore. https://github.com/ostreedev/ostree/pull/1258 * shouldn't hit this anymore. https://github.com/ostreedev/ostree/pull/1258
* */ * */
OstreeChecksumFlags flags = 0; OstreeChecksumFlags flags = 0;
if (self->disable_xattrs) if (self->disable_xattrs || self->mode == OSTREE_REPO_MODE_BARE_USER_ONLY)
flags |= OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS; flags |= OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS;
if (self->mode == OSTREE_REPO_MODE_BARE_USER_ONLY) if (self->mode == OSTREE_REPO_MODE_BARE_USER_ONLY)