Skip to content

Commit

Permalink
Merge pull request lxc#4390 from jacobmcnamee/unpack-tar-xattrs
Browse files Browse the repository at this point in the history
lxc-download, lxc-local: preserve xattrs on unpack
  • Loading branch information
stgraber authored Jan 28, 2024
2 parents a1b4ba8 + 07e3a51 commit cb5bd70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/lxc-download.in
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ fi
if [ "${IS_BSD_TAR}" = "true" ]; then
tar ${EXCLUDES} --numeric-owner -xpJf "${LXC_CACHE_PATH}/rootfs.tar.xz" -C "${LXC_ROOTFS}"
else
tar --anchored ${EXCLUDES} --numeric-owner -xpJf "${LXC_CACHE_PATH}/rootfs.tar.xz" -C "${LXC_ROOTFS}"
tar --anchored ${EXCLUDES} --numeric-owner --xattrs-include='*' -xpJf "${LXC_CACHE_PATH}/rootfs.tar.xz" -C "${LXC_ROOTFS}"
fi

mkdir -p "${LXC_ROOTFS}/dev/pts/"
Expand Down
2 changes: 1 addition & 1 deletion templates/lxc-local.in
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ unpack_rootfs() {
echo "Excludes: ${EXCLUDES}"
fi

tar --anchored ${EXCLUDES} --numeric-owner -xpJf "${LXC_FSTREE}" -C "${LXC_ROOTFS}"
tar --anchored ${EXCLUDES} --numeric-owner --xattrs-include='*' -xpJf "${LXC_FSTREE}" -C "${LXC_ROOTFS}"

prepare_rootfs
}
Expand Down

0 comments on commit cb5bd70

Please sign in to comment.