Skip to content

Commit

Permalink
kargs: Skip xattrs in tests
Browse files Browse the repository at this point in the history
This breaks in situations where `/tmp` is on e.g. overlayfs
which sadly is the podman/docker default.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Oct 11, 2024
1 parent e805417 commit bd376eb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/src/kargs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,16 @@ match-architectures = ["x86_64", "aarch64"]
let txn = repo.auto_transaction(cancellable)?;

let mt = ostree::MutableTree::new();
repo.write_dfd_to_mtree(d.as_fd().as_raw_fd(), path.as_str(), &mt, None, cancellable)
.context("Writing merged filesystem to mtree")?;
let commitmod_flags = ostree::RepoCommitModifierFlags::SKIP_XATTRS;
let commitmod = ostree::RepoCommitModifier::new(commitmod_flags, None);
repo.write_dfd_to_mtree(
d.as_fd().as_raw_fd(),
path.as_str(),
&mt,
Some(&commitmod),
cancellable,
)
.context("Writing merged filesystem to mtree")?;

let merged_root = repo
.write_mtree(&mt, cancellable)
Expand Down

0 comments on commit bd376eb

Please sign in to comment.