Skip to content

Commit

Permalink
image-rs: disable unpack_xattrs for image unpacking
Browse files Browse the repository at this point in the history
Some platforms/file-systems do not support xattrs, this would make the
image pull fail because of failing to set xattr. This commit disables
setting xattrs when unpacking to make it compabitible with most
platforms.

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Aug 23, 2024
1 parent 40dc7d2 commit 5f72378
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion image-rs/src/unpack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use tokio_tar::ArchiveBuilder;
pub async fn unpack<R: AsyncRead + Unpin>(input: R, destination: &Path) -> Result<()> {
let mut archive = ArchiveBuilder::new(input)
.set_ignore_zeros(true)
.set_unpack_xattrs(true)
.set_preserve_permissions(true)
.build();
let mut entries = archive
Expand Down

0 comments on commit 5f72378

Please sign in to comment.